Qt 5.6 | Qt Widgets | Composition Modes | composition.pro Example File

Qt 5.6.2 Reference Documentation

# composition.pro Example File

painting/composition/composition.pro

      SOURCES += main.cpp composition.cpp
      HEADERS += composition.h

      SHARED_FOLDER = ../shared

      include($$SHARED_FOLDER/shared.pri)

      RESOURCES += composition.qrc
      qtHaveModule(opengl): !contains(QT_CONFIG,dynamicgl) {
          DEFINES += USE_OPENGL
          QT += opengl
      }
      QT += widgets

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

      wince* {
          DEPLOYMENT_PLUGIN += qjpeg
      }