[PyQt] Custom widgets, dynamic properties and css

Richard Smith richard at omniaccess.com
Tue Nov 20 14:57:16 GMT 2007


Mark Summerfield wrote:
> I think for styles you must call setStyle() rather than update() to
> apply a new (or modified) style.

Nope, that segfaulted... It did update the style before it segfaulted
though.

I've also tried setting the property using a QtCore.pyqtProperty() and
various methods still no luck.

I'm not in a position to apply styles from the control, since the
end-user environment of this application is in varying light levels, and
as such I need to be able to change the entire colour scheme.

About the only thing that works at the moment, is to reload the entire
stylesheet application wide :(

-- 
Richard



More information about the PyQt mailing list