Qt 5.11 | Qt Widgets | Application Example | application.pro Example File

Qt 5.11.3 Reference Documentation

# application.pro Example File

mainwindows/application/application.pro

      QT += widgets
      requires(qtConfig(filedialog))

      HEADERS       = mainwindow.h
      SOURCES       = main.cpp \
                      mainwindow.cpp
      RESOURCES     = application.qrc

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