summaryrefslogtreecommitdiffstats
path: root/howtos/childitems/index.rst
blob: 4bf379610fd7aef9aa60aea8ca3063c96298fcf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
..
    ---------------------------------------------------------------------------
    Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
    All rights reserved.
    This work, unless otherwise expressly stated, is licensed under a
    Creative Commons Attribution-ShareAlike 2.5.
    The full license document is available from
    http://creativecommons.org/licenses/by-sa/2.5/legalcode .
    ---------------------------------------------------------------------------


How to access the child elements of an item
===========================================

You can use the :qt:`children<qml-item.html#children-prop>` and :qt:`resources<qml-item.html#children-prop>` properties of the :qt:`Item<qml-item.html> element.
The :qt:`children<qml-item.html#children-prop>` property contains the list of visual children of this item. The :qt:`resources<qml-item.html#children-prop>` property contains non-visual resources that you want to reference by name.