QML-Designer and external Components
-
The problem I have is, that the qml designer not found my reusable components. This components lie in a separate directory named MwComponents and there is a qmldir file.
To use this components in an application I create a resource file with this components and add the import statement.
@viewer->engine()->addImportPath("qrc:/modules/qml");@
Now I can import this components using
@import MwComponents 1.0 as MWC@
and it works. The Texteditor can resolve the components, I think the reason is the variable in the .pro file
@QML_IMPORT_PATH += "$${MW_ROOT_PATH}/src/hmi/MwQml/qml"@
But the designer will not show the components.