Woody1987
April 23rd, 2011, 01:57 PM
I have a QLabel and I want this label to display text with two different font sizes. My current implementation is:
ui->titleLabel->setText("<font size=18>text1</font><font size=10>text2</font>");
This doesn't work at all. I get two bits of text at the same size, and the size doesn't change regardless of the font sizes I use. A correct example of this would be great.
ui->titleLabel->setText("<font size=18>text1</font><font size=10>text2</font>");
This doesn't work at all. I get two bits of text at the same size, and the size doesn't change regardless of the font sizes I use. A correct example of this would be great.