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

QML / Cpp plugin

$
0
0
The “no code in the docs” is a bug in the docs – code snippets aren’t being generated by qdoc correctly, and I don’t know why. I’ve asked Jerome about it on IRC and he said he’d look into it. Regarding your module: http://doc-snapshot.qt-project.org/qt5-stable/qtqml/qtqml-modules-identifiedmodules.html explains that you must install to QML2_IMPORT_PATH for QML2/QtQuick2 plugins (where you seem to use QT_INSTALL_IMPORTS in your project) – by default I think this is /usr/lib/qt5/qml on Linux, so your particular module would be installed to /usr/lib/qt5/qml/com/mycompany/components on Linux. You’re on Windows, I see, but I don’t know what the default import path for QML2 modules is on that platform. If addImportPath() isn’t working as specified, that’s a bug – please file a bug report and assign it to Alan Alpert. There are unit tests for that functionality, however, so either you’ve got a strange environment, or something strange is going on. See http://doc-snapshot.qt-project.org/qt5-stable/qtdoc/qtquick-debugging.html#debugging-module-imports for more information about debugging imports. QML_IMPORT_TRACE=1 ./myapp should tell you a bit more about what’s going on. Cheers, Chris.

Viewing all articles
Browse latest Browse all 4972

Trending Articles