Rectangles have a back color? Maybe try Item?
Without more code I can't test. ________________________________ From: Vinayakam Murugan <[email protected]> To: [email protected] 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 <[email protected]> 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/ >
_______________________________________________ Qt-qml mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-qml
