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
rocjohn
Posts: 24
Registered: ‎12-02-2012
My Device: BB10
My Carrier: CMCC
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?

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

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!
Please use plain text.
Contributor
rocjohn
Posts: 24
Registered: ‎12-02-2012
My Device: BB10
My Carrier: CMCC

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

Thank you Peter!

Please use plain text.