[Qt-qml] Semi-transparent applications

Valentine v.silvansky at gmail.com
Tue Nov 23 13:00:29 CET 2010


23.11.2010 15:01, Elliot Smith пишет:
> On Tue, 2010-11-23 at 11:48 +0000, Viacheslav Dukalskiy wrote:
>> You may utilize "opacity" property, e.g.
>>
>> Rectangle {
>>   id: window
>>   width: 800
>>   height: 600
>>   opacity: 0.5
>> }
> Thanks. Sorry, I should have mentioned I also tried that. This produces
> the same white rectangle effect under qmlviewer.
>
> Elliot
That's so because QmlViewer window isn't transparent. Use your own view 
(QDeclarativeView) and make it opaque.



More information about the Qt-qml mailing list