Implement TVirtualPadPainter for Qt6 graphics.
Uses QPainter object which only exists inside paintEvent of Qt.