On Nov 23, 2010, at 14:11, ext Elliot Smith wrote:

> On Tue, 2010-11-23 at 12:04 +0000, Tomas Junnonen wrote:
>> 
>> Here's a the minimal transparent app C++ stub:
>> 
>> QDeclarativeView view;
>> 
>> QPalette palette;
>> palette.setColor(QPalette::Base, Qt::transparent);
>> view.setPalette(palette);
>> view.setAttribute(Qt::WA_TranslucentBackground);
>> 
>> view.setSource(QUrl::fromLocalFile("main.qml"));
>> view.show();
> 
> Does anyone happen to know whether there is any intention to add support
> for transparency to the qmlviewer itself. Perhaps an option like:
> 
> -opacity <percent>
> 
> might be useful?

Actually it's not a very common use case. 

qmlviewer is a generic testing app to see qml files.

You better want to deploy your own solution with you custom executable.

Also translucent top level widgets are not very common on desktop and mobile 
worlds. Also it involves the window manager to kick in, this is not good 
performance wise as well as battery life wise.

> 
> Elliot
> 
> -- 
> Elliot Smith
> Intel Open Source Technology Centre
> 
> ---------------------------------------------------------------------
> Intel Corporation (UK) Limited
> Registered No. 1134945 (England)
> Registered Office: Pipers Way, Swindon SN3 1RJ
> VAT No: 860 2173 47
> 
> This e-mail and any attachments may contain confidential material for
> the sole use of the intended recipient(s). Any review or distribution
> by others is strictly prohibited. If you are not the intended
> recipient, please contact the sender and delete all copies.
> 
> _______________________________________________
> Qt-qml mailing list
> Qt-qml@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-qml


_______________________________________________
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to