qmlextensionplugins.pro Example File | Qt QML 5.9

Qt 5.9 | Qt QML | QML Plugin Example | qmlextensionplugins.pro Example File

Qt 5.9.9 Reference Documentation

# qmlextensionplugins.pro Example File

qmlextensionplugins/qmlextensionplugins.pro

      TEMPLATE = lib
      CONFIG += plugin
      QT += qml

      DESTDIR = imports/TimeExample
      TARGET  = qmlqtimeexampleplugin

      SOURCES += plugin.cpp

      pluginfiles.files += \
          imports/TimeExample/qmldir \
          imports/TimeExample/center.png \
          imports/TimeExample/clock.png \
          imports/TimeExample/Clock.qml \
          imports/TimeExample/hour.png \
          imports/TimeExample/minute.png

      qml.files = plugins.qml
      qml.path += $$[QT_INSTALL_EXAMPLES]/qml/qmlextensionplugins
      target.path += $$[QT_INSTALL_EXAMPLES]/qml/qmlextensionplugins/imports/TimeExample
      pluginfiles.path += $$[QT_INSTALL_EXAMPLES]/qml/qmlextensionplugins/imports/TimeExample

      INSTALLS += target qml pluginfiles

      CONFIG += install_ok  # Do not cargo-cult this!