[Qt-interest] QGesture Behavior Inconsistencies
Sean Hayes
sean.t.hayes at vanderbilt.edu
Tue Feb 22 00:04:16 CET 2011
I have a QWidget, A, that grabs a gesture. The gesture accepts a variable
number of touch points. Widget A has a layout with several children that do
not grab gestures themselves. If none of these child widgets inherit
QAbstractScrollArea, then the gestures behave as expected. No mater where on
widget A you add a finger it gets grouped in the same QTouchPoints set and
is added to the same QGesture. However, if any one of the child widgets
inherit QAbstractScrollArea, additional touch points can only be added if
they originate on the same child widget. It is as if I set grabGesture() on
each child widget instead of just widget A. Why is this? Any ideas on how to
fix this?
Have tried calling
QAbstractScrollArea::viewport()->setAttribute(Qt::WA_AcceptTouchEvents),
which allows it to "grab gestures" incorrectly like all the other child
widgets, but new touch points still cannot added outside of the child
widget.
Thank you for your help,
Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110221/8a8619a7/attachment.html
More information about the Qt-interest-old
mailing list