Pascaldietz (Talk | contribs) (created TopItem API Snapshot page) |
Pascaldietz (Talk | contribs) (removed private properties) |
||
| Line 9: | Line 9: | ||
;''int'' topHeight | ;''int'' topHeight | ||
:The top most item's height. | :The top most item's height. | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
=Signals= | =Signals= | ||
;orientationChangeFinished | ;orientationChangeFinished | ||
Contents |
The TopItem follows the parent properties to the top most item. The top most item's dimensions can be accessed via topWidth and topHeight. It is recommended to call calcTopParent() before the values are accessed to ensure the top most item is referenced.
Rectangle {
id: exampleRect
width: topItem.topWidth * 0.5
height: topItem.topheight * 0.5
TopItem { id: topItem }
Component.onCompleted: {
topItem.calcTopParent()
}
}