QQmlEngineExtensionPlugin.">

- Qt 6.5
- Qt QML
- QML Plugin Example
- Qt 6.5.1 Reference Documentation

# QML Plugin Example

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

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

#### Using CMake

     cmake -DCMAKE_PREFIX_PATH=path/to/Qt/6.5.1/your_platform -S <source-dir> -B <build-dir> -G Ninja
     cd path/to/build/dir
     ninja
     qml -I imports plugins.qml

For more information about building on the command line using CMake, see Building projects on the command line.

#### Using qmake

     qmake
     make
     qml -I imports plugins.qml

Example project @ code.qt.io