How to catch update event?
I need to update the CSS for a QWidget component when the user adjusts their preferences. Is there a way to tell when update() has been called so that I can set a new CSS style before it is repainted?
You could use an eventfilter to intercept the event before it reaches the widget.
and doc about the filters
Read this first :)