Unsolved qlabel and qstring color
-
how to make this QString::number(0) blue?
QLabel("test "+QString::number(0),this);
-
By taking a look in the documentation QLabel::setText() which explains exactly what setText() supports when you want to style your text
-
i try settext, but how do i make partial QString::number(0) blue. i can only set the entire things blue QLabel("test "+QString::number(0),this); but not the QString::number(0) blue
-
Did you read the link? And if - did you read that QLabel::setText() accepts html?