Qt 5.11 | Qt Widgets | Image Viewer Example | imageviewer.pro Example File

Qt 5.11.3 Reference Documentation

# imageviewer.pro Example File

widgets/imageviewer/imageviewer.pro

      QT += widgets
      requires(qtConfig(filedialog))
      qtHaveModule(printsupport): QT += printsupport

      HEADERS       = imageviewer.h
      SOURCES       = imageviewer.cpp \
                      main.cpp

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