Details
-
Technical task
-
Resolution: Unresolved
-
P3: Somewhat important
Description
Teach the views how to instantiate their delegates using qmltc's generated code.
A bridge between QQmlComponent and qmltc is needed, so that QQmlComponent can do what the user code would usually do when instantiating objects.
For example:
// Main.qml Window { id: root width: 800 height: 600 visible: true Component { id: myComp1 MyType {} // should use qmltc-compiled code, if MyType was processed by qmltc! } Component.onCompleted: { let myComp2 = Qt.createComponent("MyType.qml") // should use qmltc-compiled code if possible(?) let obj1 = myComp1.createObject(root) let obj2 = myComp2.createObject(root) } }
Attachments
Issue Links
- depends on
-
QTBUG-102188 Distringuish qmltc-compiled QML modules from non-compiled ones in qmldir
- Reported
-
QTBUG-105896 qmltc: require required properties in the generated constructors
- Closed
- relates to
-
QTBUG-105538 qmltc evolution collection task
- Open