[Qt-qml] Transparent background
henrik.hartz at nokia.com
henrik.hartz at nokia.com
Mon Aug 30 08:09:48 CEST 2010
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<mailto: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/20100830/f00535fd/attachment.html
More information about the Qt-qml
mailing list