[Qt-qml] Transparent background

alan.westbrook at nokia.com alan.westbrook at nokia.com
Thu Aug 26 19:17:44 CEST 2010


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>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100826/a544f16c/attachment.html 


More information about the Qt-qml mailing list