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

(Windows) QT Quick 1 Extention plugin

$
0
0
I’m new to QT and am having trouble getting my plugin installed and visible to my main project. I have not changed anything with the plugin projects, as I just wanted to get it hooked up correctly before development. I have been following the following examples, which are straight forward. http://qt-project.org/doc/qt-4.8/gettingstartedqml.html https://www.youtube.com/watch?v=WsW52Iq2aPQ My main app is a “QT Quick Application”. There is no code in my toolbar class. When i add import CISPlugin 1.0 to my main.qml, I get the following message in ‘General Messages’. QML module does not contain information about components contained in plugins. Module path: C:/development/QTCommon/qgisBase/MainUI/CISPlugins See “Using QML Modules with Plugins” in the documentation. Automatic type dump of QML module failed. Errors: “C:\OSGeo4W64\bin\qmlplugindumpd.exe” returned exit code 3. Arguments: -relocatable CISPlugins 1.0 C:/development/QTCommon/qgisBase/MainUI QDeclarativeComponent: Component is not ready “file:///C:/development/QTCommon/qgisBase/MainUI/typelist.qml:2:1: module “CISPlugins” plugin “CISPlugins” not found” Any help would be great in getting this setup. _________________________________________________________________________________________ (Plugin) qmldir: plugin CISPlugins cisplugins_plugin.h #ifndef CISPLUGINS_PLUGIN_H #define CISPLUGINS_PLUGIN_H   #include <QDeclarativeExtensionPlugin>   class CISPluginsPlugin : public QDeclarativeExtensionPlugin {     Q_OBJECT #if QT_VERSION >= 0x050000     Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") #endif   public:     void registerTypes(const char *uri); };   #endif // CISPLUGINS_PLUGIN_H cisplugins_plugin.cpp #include "cisplugins_plugin.h" #include "toolbar.h"   #include <qdeclarative.h>   void CISPluginsPlugin::registerTypes(const char *uri) {     // @uri cis.ec.gc.ca     qmlRegisterType<Toolbar>(uri, 1, 0, "Toolbar"); }   #if QT_VERSION < 0x050000 Q_EXPORT_PLUGIN2(CISPlugins, CISPluginsPlugin) #endif

Viewing all articles
Browse latest Browse all 4972

Latest Images

Trending Articles



Latest Images