It appears that Qt::WA_PaintOnScreen is not needed for Qt5.