[Qt-interest] QGestureRecognizer and TouchBegin Events

Thiago Macieira thiago at kde.org
Mon Nov 29 21:18:01 CET 2010


Em Segunda-feira, 29 de Novembro de 2010, às 17:41:23, Sean Hayes escreveu:
> When a TouchBegin event is received by a widget that is registered to
> receive a gesture, the appropriate QGestureRecognizer receives
> QTouchEvents. If additional fingers are added or removed to the the
> surface, the QTouchEvent's touch points are updated accordingly. Also,

Which platform is that? We've just fixed this issue for the XInput2 hack (used 
in MeeGo 1.2).

> when the use drags his or her fingers off the widget the
> QGestureRecognizer continues to receive QTouchEvent. However, the
> QTouchEvent's touch-point count is only updated when a finger is
> removed from the surface (i.e., now new touch points are added)!
> 
> I have a custom gesture that allows the user the change the number of
> fingers in the middle performing the gesture. If the user removes a
> finger, the gesture recognizer send the correct finger count, but I
> cannot figure out how to do the same thing when a user adds a finger
> while off the original widget. Does this sound like a Qt design
> oversight or bug? Any ideas on how to get this to work would be great.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101129/f092b61c/attachment.bin 


More information about the Qt-interest-old mailing list