[Qt-interest] Styling QCheckBox
Joshua Grauman
jnfo-c at grauman.com
Tue Mar 29 22:15:45 CEST 2011
Hello all,
I wanted to verify that I'm correct on this one. I want to color the
checkmark of a QCheckBox with multiple colors. From everything I can tell,
there's no way to do this directly. I can use a stylesheet, but I need a
separate picture for each color (and for each style for that matter!,
since I'm deploying to Mac/Linux/Windows). That would be unmanagable! I'm
thinking that there might be some way to color the checkbox differently by
subclassing QCheckBox and reimplementing the paintEvent function, but
looking at it I don't see any easy way to color the checkmark that way
either. Any ideas? Thanks!
Josh
More information about the Qt-interest-old
mailing list