Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Access to children components inside a custom component

$
0
0
Oh accessing children in a component is much easier :D the way I use is just setting an alias property that works well, e.g. (CompA.qml) Item {   property alias textItem: textId // item alias   property alias text: textId.text // single  property alias   Text { id: textId } } now you can access the Text item from outside: (in another QML file) CompA {   textItem.text: "foo"  //or text: "foo" is this case }

Viewing all articles
Browse latest Browse all 4972

Latest Images

Trending Articles



Latest Images