QML Plugin Example

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

../_images/qml-plugins-example.png

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

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

Example project @ code.qt.io