Quote Originally Posted by jryannel View Post
As the previous poster said, use rotate the painter. Look in the analog clock example for how todo this.

In Qt instead of rotating/scaling (e.g. transforming) objects, we transform the painter. It's much easier like this as soon as you get used to;-)

This might also help you:
- http://doc.trolltech.com/qq/qq24-textlayouts.html

- Juergen
Thanks for your suggestion and the linked article, that is a little complicated for my project. May be rotate QPainter is the only way to draw vertical text. I supposed to edit the whole text via QTextDocument and render them to QPainter, if rotating/translating the QPainter, all the text will be rotated or translated.

i think i have to draw the contents of QTextDocument twice, once drawing horizontal text, then rotating the QPainter and drawing the vertical text. is that right?