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

Stefano Rosellini s.rosellini at iv-srl.it
Thu Oct 22 16:58:02 CEST 2009


Ithink the differences from my method and the Raja one are these:
 - My method catches mouse events on border; the Raja method lets mouse 
events pass on border too.
 - Raja method should have better performance because mouse events pass 
without taking care of mask. I don't know about paint performance (mask 
vs background).

Stefano Rosellini ha scritto:
> Not sure, but mouse events should be catched only on non-trasparent area.
>
> Rahulkumar Tibdewal ha scritto:
>   
>> Hi Stefano,
>>
>> Will QWidget::setMask to create a widget with "holes" anable me to access my desktop?
>>
>> Thanks
>> Rahul
>>
>>
>> -----Original Message-----
>> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Stefano Rosellini
>> Sent: Thursday, October 22, 2009 7:50 PM
>> To: QT Mailing LIST
>> Subject: [Qt-interest] [Fwd: Creating a Border to Desktop]
>>
>> 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
>>
>>
>> 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




More information about the Qt-interest-old mailing list