Quote Originally Posted by Scorp2us View Post
That HTML should work ina text edit.

Alterativea are to consult QFontMetrics and construct your document accordingly.
Why you are wanting to vertically center text in a text edit is beyond me.
Not sure about original author, but I need to because I have a line editor built out of text edit, can't use line edit b/c I have delegate user creates/edits html that then shows as rich text. See Summerfield PyQt book, chapter 13-14 he has a worked out example, but doesn't deal with vertical alignment.