Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
6.3.2, 6.4.1
-
None
Description
When using OpenGL as the graphics API, the window contents will jump up/down 1 pixel when resizing the window (if device pixel ratio > 1).
This does not happen with Software or Direct3D11 graphics API.
See attached gif animations for comparison between OpenGL and Direct3D11.
Steps to reproduce:
- Set Microsoft Windows Scaling to for example 200%
- Create the default "Qt Quick Application" in QtCreator
- In main.qml add anything visible, like a Text
- In main.cpp add QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGL);
- Run and resize the window vertically
EDIT: Putting a QQuickWidget anywhere inside a QWidgets application (with above conditions met) will also make all of the window contents to jump up/down when resizing vertically, including all QWidgets even if they are not in any widget layouts. See attachedĀ file graphicsapi_quickwidgets.gif