[Qt-qml] Transparent background

Juha Turunen turunen at iki.fi
Thu Aug 26 19:50:18 CEST 2010


You could try: http://doc.qt.nokia.com/4.6/qgraphicsview.html#backgroundBrush-prop

Juha

On Thu, Aug 26, 2010 at 8:43 PM, Anton Alferov <casper.zx at gmail.com> wrote:
> I suppose that desktop (or other windows) still will not be visible under my
> window prepared with that code.
> I think I need to write something like:
> QDeclarativeView v;
> v.setAttribute(Qt::WA_TranslucentBackground);
> but that doesn't work.
> Thanks,
> Anton.
>
> On 26 August 2010 21:17, <alan.westbrook at nokia.com> wrote:
>>
>> Use the color property to set the background 10%, and then opacity to set
>> the image translucency value:
>>
>>     Rectangle {
>>
>>         color: "#1a000000"
>>
>>         Image {
>>
>>             opacity: 0.5
>>
>>         }
>>
>>     }
>>
>> Alan
>> On Aug 26, 2010, at 2:19 AM, ext Anton Alferov wrote:
>>
>> Hello,
>> Is there any way to make background of the QDeclarativeView
>> semi-transparent?
>> For example I'd like to put few images on it and they should have 50%
>> opacity, whereas the rest part of the window only 10%.
>> Thanks,
>> Anton.
>> <ATT00001..txt>
>
>
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-qml
>
>



More information about the Qt-qml mailing list