PDA

View Full Version : QLABEL how to Set Line Height?



lamp
8th November 2010, 11:24
QLABEL how to Set Line Height?

somnathbanik
8th November 2010, 12:16
you can use this QLabel *label = new QLabel("<h2><i>Hello</i> "
"<font color=red>Qt!</font></h2>");

wysota
8th November 2010, 12:22
For fine grained control over the text a pure label will not be enough. You can use QTextEdit in read-only mode with adjusted decorations and then you'll be able to use the whole API of QTextDocument.