Qt 5.11 | Qt QML | QML Plugin Example

Qt 5.11.3 Reference Documentation

# QML Plugin Example

This example creates a C++ plugin extension by subclassing QQmlExtensionPlugin.

To run this example, use the following commands on the prompt:

      > qmake
      > make
      > qmlscene -I imports plugins.qml

Files:

- qmlextensionplugins/imports/TimeExample/Clock.qml
- qmlextensionplugins/imports/TimeExample/qmldir
- qmlextensionplugins/plugin.cpp
- qmlextensionplugins/plugins.qml
- qmlextensionplugins/plugins.qmlproject
- qmlextensionplugins/qmlextensionplugins.pro

Images:

- qmlextensionplugins/imports/TimeExample/center.png
- qmlextensionplugins/imports/TimeExample/clock.png
- qmlextensionplugins/imports/TimeExample/hour.png
- qmlextensionplugins/imports/TimeExample/minute.png