Qt 6.11 is out! See what's new in the release
blog
[solved]QML element scope
QML and Qt Quick
4
Posts
2
Posters
4.6k
Views
1
Watching
-
I have a QML element in main.qml. And the it has children elements and each children elements has it children elements. My question is:
- Can grand children use its grand parents id to call its properties or send signal by connection?
- Can grand parent use its grand children id to call its properties or send signal by connection?
- Can any grand children communicate each other by use its id to call its properties or send signal by connection?
any example for each case?
-
Items in external component files are limited in scope to their own file. If you wish to expose properties of internal items in a component then you need to define alias properties in the top-level item of the component. See this "article":http://developer.qt.nokia.com/wiki/QML_Progress_Spinner for an example.