PDA

View Full Version : QPalette change signal



bunjee
18th September 2008, 20:38
Hey there,

is there a way to be notified when a QPalette's value gets changed ?
like a signal or something ?

I'd like to update a QPixmap accordingly to QPalette's color dynamically.

Thanks.

maverick_pol
19th September 2008, 15:26
Hi,

Did you think about create a custom palette object that would not only set colors for you widget or whatever object and also send a signal when it would change color?
Maybe this will be a good idea.

Kacper

jpn
19th September 2008, 16:02
QEvent::PaletteChange
QEvent::ApplicationPaletteChange