Details
-
Task
-
Resolution: Fixed
-
P2: Important
-
None
-
3f4856dbc (dev)
Description
(name pending bikeshedding, string could be either QStringView or const QString &)
This should avoid the currently uglyness of having to load main.qml via the qrc path:
// current QQmlApplicationEngine engine("main.qml"); // bad if only qrc available // or QQmlApplicationEngine engine("qrc://coolproject/moduleA/main.qml"); // hassle to type // then QQmlApplicationEngine engine; engine.createComponen("coolproject.moduleA", "Main.qml") // TODO: return type? // should this maybe only be load, but QQMlComponent gets a create overload?
Further benefits might be the ability to easily access a QML singleton by name from C++.
Attachments
Issue Links
- resulted in
-
QTBUG-104764 Teach Loader (and friends) to load from module URI+typename
-
- Reported
-
- mentioned in
-
Page Loading...