Qt 6.11 is out! See what's new in the release
blog
Draw a Line in a Text Label
General and Desktop
5
Posts
4
Posters
4.9k
Views
1
Watching
-
If you want like this -test- then
@ QLabel *lbl = new QLabel("<s>test</s>", this);@ -
And another popular cases:
@
<b>bold text</b>
<i>highlighting text in italics</i>
<u>underlined text</u>
<s>strikethrough text</s>
<small>small font</small>
<big>large font</big>
@ -
You could use the "text frame feature of a QTextDocument":http://doc.qt.nokia.com/4.7/richtext-cursor.html#frames which can have a border and check, how it looks like in the RTF format.