Please suggest any alternative?
Please suggest any alternative?
I don't know what you are trying to do so it is hard to suggest an alternative. Subclassing QStyle is a likely solution however changing an object property will still not trigger a redraw automatically. If you are using stylesheets then reapplying the stylesheet seems the best option.
Bookmarks