[Qt-qml] Transparent background

Anton Alferov casper.zx at gmail.com
Fri Sep 3 21:30:01 CEST 2010


This will make all the parts of my window transparent. And I want that some
parts should not have that effect.
The solution with the setAutoFillBackground(false); and
WA_TranslucentBackground works fine.

Anton.

On 30 August 2010 10:09, <henrik.hartz at nokia.com> wrote:

> Try to set the windowOpacity on the toplevel QWidget (I guess it's your
> QDeclarativeView)
>
> http://doc.qt.nokia.com/4.7-snapshot/qwidget.html#windowOpacity-prop
>
> <http://doc.qt.nokia.com/4.7-snapshot/qwidget.html#windowOpacity-prop>Note
> this depends on what capabilities the platform has in actually making the
> window semitransparent
>
> Henrik
>
> On Aug 27, 2010, at 9:03 PM, ext Anton Alferov wrote:
>
> Alexis, thanks a lot. Your advice was useful - all my problems was resolved
> with the just one line:
> v.viewport()->setAutoFillBackground(false);
>
> Btw, the autoFillBackground property is set up in the QAbstractScrollArea
> class who is super (not direct) for the QDeclarativeView one.
>
> Thanks,
> Anton.
>
>
> On 26 August 2010 21:51, <alexis.menard at nokia.com> wrote:
>
>>
>> If it still doesn't work then you want to check the code of
>> qdeclarativeview to see if the background color, the autofillBackground
>> property are enforced.
>>
>
> <ATT00001..txt>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100903/a74dec97/attachment.html 


More information about the Qt-qml mailing list