SABROG gave you the answer: you have to reaply the style sheet every time you change this property. So your approach doesn't seem to be the best. Without knowing exactely what you are doing, I would recomend you to use a custom item delegate where you can paint different backgrounds depending on the items "property". Or if you add widgets, use the widgets paint methode.
Bookmarks