you need to reimplement paintEvent and draw that pixmap.