codecs.pro Example File | Qt Widgets 5.12.7

Qt 5.12 | Qt Widgets | Text Codecs Example | codecs.pro Example File

Qt 5.12.7 Reference Documentation

# codecs.pro Example File

tools/codecs/codecs.pro

      QT += widgets
      requires(qtConfig(filedialog))

      HEADERS      += mainwindow.h \
                      previewform.h \
                      encodingdialog.h

      SOURCES      += main.cpp \
                      mainwindow.cpp \
                      previewform.cpp \
                      encodingdialog.cpp

      RESOURCES    += codecs.qrc

      EXAMPLE_FILES = encodedfiles

      # install
      target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tools/codecs
      INSTALLS += target