[Qt-qml] Image Transparency

Vinayakam Murugan mvinayakam at gmail.com
Sat Feb 5 20:31:56 CET 2011


Hello

I am a newbie to the QML language, trying to understand the concepts.

I have a rectangle with couple of transparent images and it shows up fine
against the background. However when I try to abstract out the common
attributes and states in a seperate qml file called BaseScreen and create an
instance of the BaseScreen, the images show up completely opaque.

I tried googling for it but couldn't find any result.

BaseScreen.qml

Rectangle {

Common properties and methods

}

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Listing.qml

{

BaseScreen{

display transparent images //The transparency doesn't show up.
}



Warm Regards
~~~~~~~~~~~~~~~
Vinayak

http://www.flickr.com/photos/rightplacerighttime/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110205/e32ad17c/attachment.html 


More information about the Qt-qml mailing list