fix QWidget::paintEngine() warning for Qt5