[Qt-interest] Reg:: QDesktopWidget

Raja Rokkam rokkamraja at gmail.com
Fri Sep 25 12:40:13 CEST 2009


Hi All,

        Thanks for the help. Lightscreen or any of the below methods wont
help much because I would be needing a bounding rectange alone and the user
should be able to perform any operations on desktop. So essentially the
background widget should be hidden.


-Raja.

On Fri, Sep 25, 2009 at 12:18 PM, Mihail Naydenov <mlists at ymail.com> wrote:

> 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
>  <http://qt.html#WidgetAttribute-enum>
>
>
> *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/20090925/a7bc37f7/attachment.html 


More information about the Qt-interest-old mailing list