[Qt-interest] [Fwd: Creating a Border to Desktop]

Raja Rokkam rokkamraja at gmail.com
Thu Oct 22 16:32:01 CEST 2009


Hi Rahul,

     We are setting the attribute TransparentForMousEvents precisely for
that reason only. You can access your desktop and open any folder or do
anything you like.

I have implemented this and it does work. Let me know if you face any
issues.


-Raja.

On Thu, Oct 22, 2009 at 8:00 PM, Rahulkumar Tibdewal <
rahulkumar_tibdewal at persistent.co.in> wrote:

>  Hi Raja,
>
>
>
> Will your suggestions enable me to access my desktop, when widget in on?
>
>
>
> Thanks
>
> Rahul
>
>
>
>
>
> *From:* qt-interest-bounces at trolltech.com [mailto:
> qt-interest-bounces at trolltech.com] *On Behalf Of *Raja Rokkam
> *Sent:* Thursday, October 22, 2009 7:56 PM
> *To:* s.rosellini at iv-srl.it
> *Cc:* QT Mailing LIST
> *Subject:* Re: [Qt-interest] [Fwd: Creating a Border to Desktop]
>
>
>
> Forgot telling you to create your own QWidget class and do these changes
> over there so that it makes ur life easier.
>
> On Thu, Oct 22, 2009 at 7:54 PM, Raja Rokkam <rokkamraja at gmail.com> wrote:
>
> 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
>
>
>
>
>
> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091022/83159a5f/attachment.html 


More information about the Qt-interest-old mailing list