[Solved] Superscript/Subscript a sub-string of text in QLabel?
General and Desktop
3
Posts
2
Posters
11.9k
Views
1
Watching
-
wrote on 26 Mar 2013, 05:17 last edited by
Hi,
I have a QLabel with some text.
I want to superscript some part of the text.
How do I do that?
Also what if I want to subscript?
Thank You. -
wrote on 26 Mar 2013, 05:25 last edited by
For a QLabel you can set the text as
@label->setText("A<sub>1</sub><sup>2</sup>");@
-
wrote on 27 Mar 2013, 05:18 last edited by
@Sam Thank You.
That Worked!
1/3