[Qt-qml] Image Transparency
Jason H
scorp1us at yahoo.com
Sun Feb 6 06:27:08 CET 2011
Rectangles have a back color?
Maybe try Item?
Without more code I can't test.
________________________________
From: Vinayakam Murugan <mvinayakam at gmail.com>
To: qt-qml at qt.nokia.com
Sent: Sat, February 5, 2011 8:08:11 PM
Subject: Re: [Qt-qml] Image Transparency
This was resolved. However I am still trying to understand how ;)
If you change Rectangle in BaseScreen.sql to FocusScope, the images show up
properly.
Warm Regards
~~~~~~~~~~~~~~~
Vinayak
http://www.flickr.com/photos/rightplacerighttime/
On Sat, Feb 5, 2011 at 11:31 AM, Vinayakam Murugan <mvinayakam at gmail.com> wrote:
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/b379aeb9/attachment.html
More information about the Qt-qml
mailing list