Use QPainter from within paintEvent.