Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

How to use plugins?

$
0
0
Hi, Let me told you how I work with plugins in my apps. I’ve create a plugin and complete it to application folder. I’ll try to show you step-by-step: 1. Copy you plugin file to folder with you client app. 2. Open client app and import you plugin. It’s may looks like: import <plugin_name> <version> In my case it looks like: import com.shav.msl 1.0 The you can add your class(es) to application qml file(s). Also you may check paths to plugins using this: QML_IMPORT_TRACE=1 This build option you must set to you client app build environment settings. Open your project in QtCreator and select project settings tab from the left side. Find “Build Environment” section and press to add button. After load your client app in application console you must see all qml plugins and file which was loaded. Also you must see paths to your plugin in client app. Also you can check this links: See the section on debugging imports from: http://qt-project.org/doc/qt-5.0/qtquick/qtquick-debugging.html For more information on importing modules, see the docs about creating identified (installed) QML modules: http://qt-project.org/doc/qt-5.0/qtqml/qtqml-modules-topic.html http://qt-project.org/doc/qt-5.0/qtqml/qtqml-modules-identifiedmodules.html http://qt-project.org/doc/qt-5.0/qtqml/qtqml-modules-cppplugins.html

Viewing all articles
Browse latest Browse all 4972

Trending Articles