[Solved] Mockup for C++ module
QML and Qt Quick
2
Posts
1
Posters
2.4k
Views
1
Watching
-
wrote on 28 Feb 2012, 12:01 last edited by
I've created a module in C++.
Now I want to give the QML files to the designers who do not have access to the C++ modules.
How can I create a mockup so that
@import MyModule 1.0@
works?
Now I'm getting the error:
@
file:///E:/MyComponent.qml:3:1: module "MyModule" is not installed
import MyModule 1.0
^
@ -
wrote on 29 Feb 2012, 06:21 last edited by
I could fix that problem by creating a "MyModule" folder in the folder where the QML files are.
In that folder, I created a qmldir file which just contains the lineSlider 1.0 Slider.qml
and I also created the Slider.qml file.
Then the import was fine.
1/2