https://github.com/machinekoder/qmlextensionbug
This project demonstrates a bug (or missing feature) of Qt Creator for QML Extensions
https://github.com/machinekoder/qmlextensionbug
Last synced: 5 months ago
JSON representation
This project demonstrates a bug (or missing feature) of Qt Creator for QML Extensions
- Host: GitHub
- URL: https://github.com/machinekoder/qmlextensionbug
- Owner: machinekoder
- Created: 2014-04-18T19:43:36.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-04-18T20:21:54.000Z (almost 12 years ago)
- Last Synced: 2023-03-22T19:22:41.786Z (almost 3 years ago)
- Language: C++
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.asciidoc
Awesome Lists containing this project
README
This project demonstrates a bug (or missing feature) with Qt Creator and QML extensions. It is a slightly modified version
of the Qt Quick 2 Extension template from Qt Creator 3.1
Reproduce
~~~~~~~~~
Open the moduletest project with Qt Creator and compile it in Release mode. Then go to the build folder and run
----
make install
----
This will install a new QML extension to your Qt version. Then create navigate to the installed directory (/qml/com/mycompany/qmlcomponents/)
and create a plugins.qmltypes file with the following command:
----
qmlplugindump com.mycompany.qmlcomponents 1.0 > plugins.qmltypes
----
Then open the qmlproject qmltest and wait until Qt Creator
has resolved all imports.
Expected behavior
~~~~~~~~~~~~~~~~~
Imports work as expected and are recognized. Qt Quick Designer shows the imported visual items.
Actual behavior
~~~~~~~~~~~~~~~
Imports from C++ plugins are recognized correctly. Imports from QML files are not recognized. Qt Quick Designer
shows no visual items from plugins at all.
Links
~~~~~
https://bugreports.qt-project.org/browse/QTCREATORBUG-12089 +
https://bugreports.qt-project.org/browse/QTCREATORBUG-12090 +
http://qt-project.org/forums/viewthread/41611/