I’m creating a custom control and wanted to make it generic enough to use any orientation. When I try vertical orientation the kerned text isn’t centered.
You can see that best with the character ‘i’ in the attached image.
Any suggestions?

Here’s how I’m rendering the text:
int flags = Qt::AlignJustify | Qt::AlignVCenter | Qt::TextWrapAnywhere;
painter.drawText( TextArea, flags, text );
painter is a QPainter. This code is in the paintEvent() method.
Putting a linefeed after each character might do the trick.
Update:
Also, I think you should remove the
Qt::AlignJustifyflag. I didn’t notice before that you were missing the horizontal centering flag. Try these flags:or