[Qt-interest] Events on Transparent Window
Sean Hayes
sean.t.hayes at vanderbilt.edu
Fri Feb 11 17:48:03 CET 2011
Ben,
1. Define a new widget class - transparentWindowWidget, base the design on
> QMdiSubWindow
> 2. in the new widget, when a widget is assigned, install an event filter.
> 3. do what you want on the events, you can prevent them from going down to
> the children as well.
>
I had not considered the QMdiSubWindow. Maybe having multiple QMdiSubWindows
behave differently than multiple regular windows and the events will get
propagated to the parent QMainWindow. Unlike with a cursor, touch points
can occur from multiple points simultaneously, It is important that all the
touch events come from the same widget (i.e., they propagate to a single
parent). I can install event filters on several widgets but then I will get
multiple touch events, each containing only a subset of all the active touch
points. I need a single set of QTouchEvents were each event contains all the
touch points. I will try it out this weekend and let everyone know if it
works with multiple touch contacts.
Thank you,
Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110211/0c595c03/attachment.html
More information about the Qt-interest-old
mailing list