[Qt-interest] Events on Transparent Window

Sean Hayes sean.t.hayes at vanderbilt.edu
Fri Feb 11 17:14:26 CET 2011


>
>   Set the window infinitesimally opaque?
>
Atlant, Thanks for the suggestion. Setting the opacity to near 0 works but
the value has to be somewhat "large". It it is say 0.00001, I still do not
receive events. Larger values are clearly visible and would not
be acceptable for my application.


>  ------------------------------
>
> *From:* qt-interest-bounces+aschmidt=dekaresearch.com at qt.nokia.com[mailto:
> qt-interest-bounces+aschmidt=dekaresearch.com at qt.nokia.com] *On Behalf Of
> *Sean Hayes
> *Sent:* Wednesday, February 09, 2011 11:20
> *To:* Qt Interest
> *Subject:* [Qt-interest] Events on Transparent Window
>
>
>
> 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
>
>
>
> Click here<https://www.mailcontrol.com/sr/uwMnqXFOYA7TndxI!oX7UiNQo6b55PW6zQ+L4wFGkXLdSNSni6m0hhjLsS5omgJcbfShgGCNT+JUlvAsdlYHAg==>to report this email as spam.
>
> ------------------------------
> This e-mail and the information, including any attachments, it contains are
> intended to be a confidential communication only to the person or entity to
> whom it is addressed and may contain information that is privileged. If the
> reader of this message is not the intended recipient, you are hereby
> notified that any dissemination, distribution or copying of this
> communication is strictly prohibited. If you have received this
> communication in error, please immediately notify the sender and destroy the
> original message.
>
> Thank you.
>
> Please consider the environment before printing this email.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110211/5ce9cb26/attachment.html 


More information about the Qt-interest-old mailing list