imbed a custom control's child into an inner component of the control
Unsolved
QML and Qt Quick
-
This post is deleted!
-
@lawrence-emke I'm not sure I understand your description. But nothing stops you from setting one of the "one of the children of the custom control" as parent in the user embedded control.
-
What you want is a default alias property :
CustomControl.qml:
Column { default property alias innerColumnData: innerColumn.data property alias title: label.text Label { id: label } Column { id: innerColumn } }
usage:
CustomControl { title: "Firstname" TextField {} // text field will be put as a child of innerColumn, (equivalent to innerColumnData: TextField {}) }
-
This post is deleted!