Details
-
Suggestion
-
Resolution: Unresolved
-
P4: Low
-
None
-
5.5.1, 5.6.0
-
X11
Description
The user created a simple gesture recognizer for the swipe event on her touch-screen. The user found that documentation is lacking some valuable information on how to implement properly touch event. The users scenario is:
1. User puts left finger into the left TextEdit object and the right finger into the right TextEdit object. Those two textedit objects are inside the scroll-area, as you can see from the both demo applications attached.
2. User expects two touch points should be return. You do not even to swipe to see the issue.
3. However only one touch point is retuned when:
a) User is using Scroll-area and sets grabGesture to the scroll-areas viewPort (uncomment the line with comment Does not work)
b) User is using QMainWindow and sets grabGesture to the scroll-area(!!!) and then sets scroll-area as a central widget of the QMainWindow. (uncomment the line with comment does not work to see the issue)
The behaviour is a bit strange and unusual. And this should be explained in more details either in this suggestion or in Qt Documentation. As another option, it might be a bug (not quite sure about this)
The solution for the point a) is to set grabGesture to the scroll-area (see the demo A attached).
The solution for the point b) is to set grabGesture to the QMainWindow (see demo B attached).
You need a touch-screen to test it properly.