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
New Contributor
Posts: 8
Registered: ‎02-03-2013
My Device: Simulator
My Carrier: No
Accepted Solution

QWidget::geometry() analog

Can I find out whether a given point belongs to a Control? Something like widget->geometry().contains(QPoint(x,y))

Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: QWidget::geometry() analog

Hi! Use LayoutUpdateHandler to get the Control's coordinates and size:

https://developer.blackberry.com/cascades/reference/bb__cascades__layoutupdatehandler.html


Andrey Fidrya, @zmeyc on twitter
Highlighted
New Contributor
Posts: 8
Registered: ‎02-03-2013
My Device: Simulator
My Carrier: No

Re: QWidget::geometry() analog

Thanks!