I think I got it! I have included to the painterEvent the following:

QPixmap pm(200, 200); pm.fill(Qt::white); setPixmap(pm);

Now I can set the text from other class like:


However, I think I shouldn't set Pixmap inside paintEvent - better to do it in the other class so this type of label could be also used for other labels, right?


I liked the idea of @jsulm. Could you give me some hints how to achieve it? How to get the painting functionality from a standard QLabel and then add some additional my own painting?