Qt 5.7 | Qt QML | Writing QML Extensions with C++ | chapter1-basics.pro Example File

Qt 5.7.1 Reference Documentation

# chapter1-basics.pro Example File

tutorials/extending-qml/chapter1-basics/chapter1-basics.pro

      QT += qml quick

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

      RESOURCES += chapter1-basics.qrc

      DESTPATH = $$[QT_INSTALL_EXAMPLES]/qml/tutorials/extending-qml/chapter1-basics
      target.path = $$DESTPATH

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

      INSTALLS += target qml