Details
-
Suggestion
-
Resolution: Won't Do
-
P3: Somewhat important
-
None
-
5.3.0
-
None
Description
A string of QML can be converted to an object through Qt.createQmlObject. However, the Loader type can only load a URL (QUrl) or a component (QQmlComponent), not an object. As far as I can see, if one would want to sideload a string of QML, the only choices are subclassing Loader or saving the string to a file and using Loader to load that file URL.
I would thus suggest enabling the Loader to work with strings of QML, e.g. through a new property sourceString.
Attachments
Issue Links
- is replaced by
-
QTBUG-26278 Need Qt.createComponent overload which takes a typename
- Closed