Android Multitouch: QEvent::TouchEnd emitted ONLY if there are no more fingers on the Screen
-
Hello guys,
The QTouchEvent works perfectly with only one finger, with two fingers it works nearly as expected, i mean i receive a second TouchUpdate, but not a second TouchBegin. If i lift one of the two finger off the screen i get no TouchEnd (i get no event at all, probably because there was not a second TouchBegin), i need to remove all the two fingers for getting the TouchEnd signal, so my question is HOW can i know if one of the two finger has been lifted from the screen?
Compile platform:
Windows 8.1 64bit - Qt Creator 3.2.2 - Qt 5.3.2Deploy platform:
Android 4.3 (Samsung Galaxy S III)Thanks
-
Hi and welcome to devnet,
You should add which version of Qt you are using, with which OS on which platform
-
[quote author="SGaist" date="1417818774"]Hi and welcome to devnet,
You should add which version of Qt you are using, with which OS on which platform[/quote]
Hello, thanks, post updated, let me know if anything else can be useful.
-
I found i do not get a second TouchBegin, but just another TouchUpdate when i put the second finger on the screen... Is a valuable solution splitting into 2 widgets (as i need one possible touch for a first half of the screen and one possible touch for the second half of the screen)?
-
That's normal, added and removed fingers will get you TouchUpdate events. AFAIK, you should check the state of the TouchPoint associated to the QTouchEvent you are getting and act accordingly.
-
Sure, but i do not get the TouchUpdate when i lift/remove the second finger, that's the problem... Getting the TouchUpdate when the second finger (one of the two finger on the screen) is removed would fix all my problems...
-
Then you may have found a bug. You should check the "bug report system":http://bugreports.qt-project.org to see if it's something known. If not please consider opening a new report providing a minimal compilable example that reproduces this behavior
-
[quote author="SGaist" date="1417991535"]Then you may have found a bug. You should check the "bug report system":http://bugreports.qt-project.org to see if it's something known. If not please consider opening a new report providing a minimal compilable example that reproduces this behavior [/quote]
Reported on the bug report system, this behaviour has been confirmed to be a bug:
-
Thanks for the link and detailed report