[Qt-interest] Multi Gesture
Wathek LOUED
wathek at gmail.com
Sun Mar 20 18:36:35 CET 2011
Sean,
Yes but the problem is that since that QGestureRecognizer doesn't free the
QGesture and it uses always the same QGesture it only resets it I cannot
have two (or more) same gestures at the same time.
Let's say that the gesture is a Tap and Hold so it needs about 700ms without
moving to recognize the gesture. So first touched Point the
GestureRecognizer setted the QGesture parameters (Position, Timer, etc). At
400ms a second Touched Point arrived, the GestureRecognizer cannot do
anything since it's busy with the first one. You see ?
On Sun, Mar 20, 2011 at 5:44 PM, Wathek LOUED <wathek at gmail.com> wrote:
> I see I got an other question. I'd like to know when the QGestureRecognizer
> changes the QGesture::state to QGestureRecognizer::CancelGesture or
> QGestureRecognizer::FinishGesture is the QGesture killed ?
>
> On Sun, Mar 20, 2011 at 3:53 PM, Sean Hayes <sean.t.hayes at vanderbilt.edu>wrote:
>
>> Wathek,
>>
>> You could probably do this by created you own gesture classes that
>> subclass QGesture. The key would be how you recognize the gestures in your
>> gesture recognizer. For example, you could monitor all the touch points
>> received and see any one of them match your gestures (as opposed to only
>> checking the first point or two). If you are use some gestures that utilize
>> more than one touch point, you could test if any combinational of two points
>> matches your gesture.
>>
>> Sean
>>
>> On Sun, Mar 20, 2011 at 7:38 AM, Wathek LOUED <wathek at gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I was thinking how can I do to get a multi gesture ? let's say a finger
>>> to do a Tap And Hold Gesture and another finger where the user does a Pan
>>> Gesture. Using the QGesture of Qt it won't work. Any idea how can I do so
>>> that it'll be possible ?
>>>
>>> Thank you
>>>
>>> Sincerely
>>> Wathek
>>>
>>> _______________________________________________
>>> Qt-interest mailing list
>>> Qt-interest at qt.nokia.com
>>> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110320/53dc3c75/attachment.html
More information about the Qt-interest-old
mailing list