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
}
↧








