PDA

View Full Version : Color QLCDNumber with style sheet



waynew
15th April 2011, 05:17
Trying to color a QLCDNumber with a style sheet - not working.

Here's what I tried:
QLCDNumber::section{background-color::green}

No effect.

The rest of my style sheet works fine. This is the only problem.
Has anyone done this before and knows what works?
Thanks!

high_flyer
15th April 2011, 10:54
::section is not a sub control of QLCDNumber (see docs)
QLCDNumber is a QFrame subclass, so have a look at the StyleSheets reference for QFrame.

waynew
15th April 2011, 13:48
Thanks high_flyer - that explains why I couldn't find what I needed in the doc :)