I'm confused about modules in Qt QML. I've read all the docs, but it doesn't make clear some basic ideas.
I understand that i can put a bunch of QML files into a directory and add a qmldir file to describe an identified module. When i do this and adjust the QML_IMPORT_PATH, QtCreator is happy and stops underlining the import ModuleName 1.0 line.
So creator is happy, but it does not work. I get module is not installed. my questions are:
- what does it mean by "installed". I have directory of files, but i haven't "installed" them anywhere.
- should i be building/compiling the module to make a DLL/.so ?
- does the module QML files go into the resources of the main app, otherwise where are they to be found?
- my main.qml file is part of the app resources, how does the app locate the resources of the module at runtime.
Sorry, for all these questions, but the basics of these modules is just not clear. I don't understand if a "module" is just the sharing of files or is it a compiled unit.
thanks for any help.
<file>
entry forqmldir
inside theqrc
file. – pestophagous