Instead of mTextLeftOffset and mTextTopOffset can't you use text alignment options while painting?
Qt Code:
QTextOption o; o.setAlignment(Qt::AlignHCenter| Qt::AlignVCenter); painter->drawText(textRect, text, o);To copy to clipboard, switch view to plain text mode
Bookmarks