[Qt-interest] Reg:: QDesktopWidget

Mihail Naydenov mlists at ymail.com
Fri Sep 25 08:48:10 CEST 2009


Yes, you have two options:

1. You can grab a desktop screenshot (see examples/desktop/screenshot), than paint it on a full screen widget together with the rect you want. 
2. Use Qt::WA_TranslucentBackground window flag to create a transparent full screen widget and paint just the rect. 
(though, I do not know how the mouse events are handled in this scenario...)

MihailNaydenov


>
>From: Raja Rokkam <rokkamraja at gmail.com>
>To: qt-interest at trolltech.com
>Sent: Friday, September 25, 2009 9:15:54 AM
>Subject: [Qt-interest] Reg:: QDesktopWidget
>
>>Hi All,
>
>
>    I am trying to paint a rectangle around the computer screen when a click happens in my application which is running. I understand that Qt doesnt allow paint to be done outside the application view but I am wondering if it would be possible to create a widget of screen size hidden and then draw frame or any other way of achieving this ? 
>
>
>Thanks,
>Raja.
>


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090924/8539dab3/attachment.html 


More information about the Qt-interest-old mailing list