is there a way to draw fixed text that has subscripts. My goal is to have something like: \"K_max=K_2 . 3\"
QString equation=\"K_max=K_2 . 3\"; painter.drawT
You may use supported Qt HTML subset to format your text. If you need to draw formatted text, you should use QTextDocument::drawContents.
QPainter::drawText is designed for plain text without formatting, and it works much faster.
QPainter::drawText