I tried it to load in a loader and all samples below work!
Loader {
width: 500;
height: 500;
source: "qrc:///qml/components/LabelStringEdit.qml";
}
Loader {
width: 500;
height: 500;
source: "qrc:/qml/components/LabelStringEdit.qml";
}
Loader {
width: 500;
height: 500;
source: "qrc:///qml/components/LabelStringEdit.qml";
}
Loader {
width: 500;
height: 500;
source: "qrc:/qml/components/LabelStringEdit.qml";
}
To copy to clipboard, switch view to plain text mode
The error i get:
Debug Error
File: global\qglobal.cpp
Line: 2966
ASSERT: "e" in file ...qqmlengine_p.h line 378
With the QMLSCENE it does not work because i do have an Import in my LabelStringEdit.qml
import "qrc:/qml/components" as Controls
import "qrc:/qml/components" as Controls
To copy to clipboard, switch view to plain text mode
ans of course qmlscene cant find "qrc:/qml/components" but my app should find?! Do i have to provide the Import path to the "QQmlComponent" class?
Bookmarks