[Qt-interest] Events on Transparent Window
Sean Hayes
sean.t.hayes at vanderbilt.edu
Wed Feb 9 17:19:44 CET 2011
I am trying to create a transparent window that overlays multiple other
windows and captures all mouse and touch events. Windows touch messages seem
to only be set to a window if the initial contact point is over the window.
Therefore, if you start a gesture over one window and add a finger over
another window, the QTouchEvent will only contain the first touch point. A
setup similar to the one in this Windows programing
article<http://blogs.msdn.com/b/seealso/archive/2011/02/07/creating-windows-touch-control-frameworks-photostrip.aspx>may
solve this problem. However, I do not know much about windows specific
code and would prefer to stick with Qt's API for obvious reasons.
Setting full transparency causes Windows to send the event directly to the
window underneath, defeating the purpose. Any ideas on how to force the
transparent window to receve events? I have tried this with
QWidget::setWindowOpacity(0).
I am using Qt 4.7.1 on Windows 7.
Thanks for you help,
Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110209/a7cd2bf3/attachment.html
More information about the Qt-interest-old
mailing list