Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.4.0
-
None
-
OS X 10.10
Description
qtdeclarative/examples/quickwidgets/qquickviewcomparison only shows a white empty rectangle for the QQuickWidget on the internal, non-retina screen when there is an external high dpi (scaling) screen connected.
When moving the window to the retina screen, it looks correct. Same happens when the internal screen is retina and the external is not: It works on the retina one but not on the other.
Same for the QQuickWidget example.
QOpenGLWidget does not have this problem.
It is caused by the fact that Quick is calling blindly QWindow::devicePixelRatio(). This approach is wrong when using QQuickRenderControl since the QQuickWindow does not have an actual window and so devicePixelRatio() merely returns some default value which will surely be wrong for one of the screens.
The correct approach is to use QQuickRenderControl::renderWindowFor.
Attachments
Issue Links
- is duplicated by
-
QTBUG-40723 QQuickWidget sample doesn't run correctly on MacOS X multi display environment
- Closed
- is required for
-
QTBUG-41613 Issues to be fixed before 5.4.0 RC
- Closed