PDA

View Full Version : QML Swipe gesture overrides other components



juracist
9th November 2014, 14:49
As a swipe gesture handler in my app, I used code from here: https://gist.github.com/kovrov/1742405

The SwipeArea component is used on a page with couple of buttons and text input components, and here comes the problem.
After applying SwipeArea to page, it gets highest priority and I can't access any other control that is beneath this SwipeArea.
Only accepted gestures are swipe left and right, and no button can be pressed or text insesrted in text input control.

Any advice?

wysota
9th November 2014, 23:03
It seems "SwipeArea" is a regular "MouseArea" so either position it under the other components or make it ignore all the events it gets so that they propagate to items underneath.