Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 193
Registered: ‎12-29-2010
My Device: Bold 9900
My Carrier: Rogers

property variant gives a "unknown property" when accessed in other qml files



I have a main.qml with a root TabbedPane. In it I have a common app background color I wanted to use as such:


property variant appBackground: Color.create("#D2D5D5")


In other qml files, the containers have a "background" field set to the following:


Container {
   background: appBackground

 But I get a warning next to the background in this container stating: "unknown symbol: appBackground". Any ideas? It's all working well (i.e. the background color is reflected) but the warning is bothering me.


I followed the idea from this thread: http://supportforums.blackberry.com/t5/Cascades-Development/Background-colour/m-p/1959633#M5204


Any help would be great.