PDA

View Full Version : Multi-touch Gesture Events Updated Outside Widget, (Use Transparent Window?)



stretchtiberius
18th November 2010, 17:48
I am interested in implementing a custom QGesture where finger count is one of the fields. I can start the gesture on a widget by placing a number of fingers down.

Currently the finger count is updated correctly when:

removing a number of finger(s) while over the widget
removing a number of finger(s) while not over the widget
adding a number of finger(s) while over the widget


I need to be able to update the count when a number of fingers(s) are added off the widget. That is, a user starts the gesture, drags fingers off the edge of the widget, and adds a finger.

I have tried to use a transparent widget that covers the widget the gesture is started on. When the gesture is activated, the transparent widget goes to full screen to receive new touch points. However, the widget only receives touch events when Qt::WA_TranslucentBackground is false and when the WindowOpacity is not close to 0. Why is that?

Thank you for your help.