Avoid calling winId() on Qt5.

Avoids breaking QQuickWidget and the likes. See:
* https://bugreports.qt-project.org/browse/QTBUG-41779
* https://bugreports.qt-project.org/browse/QTBUG-40765
* https://bugreports.qt-project.org/browse/QTBUG-41942