Not sure if you do it already, but you still can use setText and in the paint simply do:And you can even adjust the sizeHint function for the new "space requirement".Qt Code:
painter.drawText(this->rect(), Qt::AlignCenter|Qt::TextWrapAnywhere, text());To copy to clipboard, switch view to plain text mode
Bookmarks