Hi,

To get something painted what is painted in the base class implementation of paintEvent(), you must call it:
Qt Code:
  1. void MyDerivedLabel::paintEvent(QPaintEvent* event)
  2. {
  3. QLabel::paintEvent(event); // <---
  4. QPainter painter(this);
  5. ...
  6. }
To copy to clipboard, switch view to plain text mode