[resolved] How to display a string in different font size
-
Hi @stuartx,
You can use QGraphicsTextItem and add it toQGraphicsScene
. It has setHtml wherein you can set the text in HTML format way. So,QGraphicsTextItem *txt = new QGraphicsTextItem; txt->setHtml("<font size=\"6\">100</font><I>mph</I>"); scene->addItem(txt);