Qt 5.6 | Qt QML | Writing QML Extensions with C++ | chapter2-methods.pro Example File

Qt 5.6.3 Reference Documentation

# chapter2-methods.pro Example File

tutorials/extending-qml/chapter2-methods/chapter2-methods.pro

      QT += qml quick

      HEADERS += piechart.h
      SOURCES += piechart.cpp \
                 main.cpp

      RESOURCES += chapter2-methods.qrc

      DESTPATH = $$[QT_INSTALL_EXAMPLES]/qml/tutorials/extending-qml/chapter2-methods
      target.path = $$DESTPATH

      qml.files = *.qml
      qml.path = $$DESTPATH

      INSTALLS += target qml