Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.4.0 Beta
-
None
-
OSX 10.9, XCode 5, qt-opensource-mac-x64-clang-5.4.0-beta_2014-10-03_13-59-21-26.dmg
-
a7f1eb4ab35a74e401c41d77e5fad13193c25c56 444e947aadc82e2aeb72fa5b3e6a352ff02441f2
Description
Adding a QOpenGLWidget to an application on a Retina screen blows the layout/pixel ratio of the entire application.
Simplest repro: build and run the QOpenGLWidget example from the SDK.
The app layout/pixel ratio is messed up as soon as:
-you add a QOpenGLWidget to the main window layout
-or you have a QOpenGLWidget created with the main window as the parent
Screenshots provided:
-QOpenGLWidget example running on a non-retina screen
-QOpenGLWidget example running on a retina screen
-QOpenGLWidget example running on a retina screen, and the QOpenGLWidget is not added to the layout
(done by commenting the line m_layout->addWidget(glwidget,1,0,8,1)
I have the exact same problem on my own application.
Looks like the application is stretched x2 from the bottom left.
You can enable HiDPI on any OSX>=10.7 using the following command line:
sudo defaults write /Library/Preferences/com.apple.windowserver.plist DisplayResolutionEnabled -bool true
The additional resolutions then appear in the display settings
Here's the GPU detail:
GPU: Apple Computer, Inc. / Apple Software Renderer
OGL: 2.1 APPLE-9.0.83 / 1.20