Qt 5.6 | Qt OpenGL | 2D Painting Example | 2dpainting.pro Example File

Qt 5.6.2 Reference Documentation

# 2dpainting.pro Example File

2dpainting/2dpainting.pro

      QT          += widgets

      HEADERS     = glwidget.h \
                    helper.h \
                    widget.h \
                    window.h
      SOURCES     = glwidget.cpp \
                    helper.cpp \
                    main.cpp \
                    widget.cpp \
                    window.cpp

      # install
      target.path = $$[QT_INSTALL_EXAMPLES]/opengl/2dpainting
      INSTALLS += target