[Qt-interest] [Fwd: Creating a Border to Desktop]
Raja Rokkam
rokkamraja at gmail.com
Thu Oct 22 16:24:54 CEST 2009
create a QWidget and get screen geometry using QDesktopWidget.
Set this flags:
setAttribute(Qt::WA_TranslucentBackground);
setAttribute(Qt::WA_TransparentForMouseEvents);
and if you want to draw a border jus override the paint events and create a
QPainter object in it and just paint the border.
-Raja.
On Thu, Oct 22, 2009 at 7:50 PM, Stefano Rosellini <s.rosellini at iv-srl.it>wrote:
> Take a look to QWidget::setMask to create a widget with "holes" and
> QDesktopWidget to get desktop geometry.
>
>
> Hello All,
>
> I am creating a widget which has following requirements.
>
> 1. Widget covers an entire screen. Like full screen.
>
> 2. Thick blue border.
>
> 3. Widget is such that I can see UI in the background. .i.e. I can see my
> desktop.
>
> To summarize this, it’s like putting a border on your desktop. One can also
> consider it as creating a Frame for a desktop.
>
> Any help is highly appreciated.
>
> Thanks
>
> Rahul
>
> DISCLAIMER ========== This e-mail may contain privileged and confidential
> information which is the property of Persistent Systems Ltd. It is intended
> only for the use of the individual or entity to which it is addressed. If
> you are not the intended recipient, you are not authorized to read, retain,
> copy, print, distribute or use this message. If you have received this
> communication in error, please notify the sender and delete all copies of
> this message. Persistent Systems Ltd. does not accept any liability for
> virus infected mails.
>
>
> --
> Stefano Rosellini
> Informatica Valdinievole
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091022/16456016/attachment.html
More information about the Qt-interest-old
mailing list