[Solved] Mockup for C++ module
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@
Now I'm getting the error:
file:///E:/MyComponent.qml:3:1: module "MyModule" is not installed
import MyModule 1.0
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 line
Slider 1.0 Slider.qml
and I also created the Slider.qml file.
Then the import was fine.