01-04-2013 03:58 AM
01-04-2013 04:12 AM - edited 01-04-2013 04:17 AM
Hi! Not sure if this is the easiest way, but you can attach LayoutUpdateHandler to scrollView to obtain it's frame. Then store the frame in member variable and recalculate onTouch coordinates relative to it.
LayoutUpdateHandler::create(srollView) .onLayoutFrameChanged(this, SLOT(handleLayoutFrameUpdated(QRectF)));
01-04-2013 04:37 AM
01-04-2013 04:49 AM
I've checked the objects hierarchy for ListView and seems no such mechanism exists yet. I wouldn't call this a bug but it could be convenient to have such methods. You might want to submit a feature request to issue tracker: