Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
Posts: 24
Registered: ‎12-02-2012
My Device: BB10
Accepted Solution

How to get control's geometry in QML?

[ Edited ]

Are there a way to get control's actual positionX, positionY, Width and Height in QML?

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: How to get control's geometry in QML?

You can do this with https://developer.blackberry.com/cascades/reference/bb__cascades__layoutupdatehandler.html but it does have some limitations as a result of the architecture of Cascades and how the layout is done in a separate thread. It may not be the approach you really want to use.... or maybe it is.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Contributor
Posts: 24
Registered: ‎12-02-2012
My Device: BB10

Re: How to get control's geometry in QML?

Thank you Peter!