PDA

View Full Version : Change LCD color depending on the condition



lamusek17
18th April 2012, 12:43
Hello. I am newbie, and I have problem. I have QLCDNumber with sheetstyle "color: rgb(44, 103, 0)".
And what I want to do:
This is green color. I want to make the condition: eg. If value on QLCD > 50, set sheetstyle to "color: rgb(16,78,139)".
Is it possible to do? If yes, how to make this? I would ask for some tips.

Lesiok
18th April 2012, 15:32
Read about QWidget::setStyle() and QLCDNumber::value()