- Clone this repository
- Change the
CMAKE_PREFIX_PATH
inCMakeLists.txt
to point to your Qt installation cmake -B build .
cmake --build build
cmake -P build/cmake_install.cmake
Now the plugin is ready and installed in the ./build/qml
dictionary.
## How to use the plugin in QML
1.
export QML2_IMPORT_PATH=/XXXX/QMLPlugin/build/qml:$QML2_IMPORT_PATH
2. qml app.qml
or qmlscene app.qml
will launch the app(qml
or qmlscene
is in the directory of Qt installation).
./build/app