UI broken on MacOS Mojave using OpenGL
-
Hello
I'm trying to develop a QT desktop application for MacOS Mojave. As part of the application, there is a QGLWidget for rendering 3D content.
Ever since I've upgraded to MacOS Mojave, the UI is completely broken:
Either I enable support for the Retina display (using the plist file and theAA_EnableHighDpiScaling
flag) and the UI completely breaks down, or I disable support for Retina and the UI appears blurred as it's scaled up.As part of the investigation, I've decided to try and run a sample project from Qt Creator (the 40000 chips project). It looked fine, until I clicked the 'OpenGL' button - and then the UI broke down just like it did in my own application (illustration images below).
Has anyone else experienced issues with Qt UI scaling on MacOS Mojave?
Does anyone have any idea what I should do?
Thanks in advance to everyone!Exhibit A. Everything is Fine:
Exhibit B. Everything Breaks Down:
-
-
Are you running a Mojave Beta by any chance? There are reports that the latest version of the Mojave Beta broke Sublime Text. It may be related:
-
I tried the same thing as you with Qt 5.9.2 on macOS mojave v12.14, using xCode 10.0 with a Retina 5k 27inch monitor and AMD Radeon R9 M395X 4096 MB graphics . It worked perfectly at all the resolutions I could set it to, including the low res ones. I did not see the artefacts that you are showing.
Now, having seen your results I am concerned it might be broken in some newer version of Qt :-(.
-
@AndyS I'm using Qt 5.11.2, but I don't see any way to download 5.12
@Michael-Wilson No beta, just the normal Mojave installed from the AppStore
@kenchan Actually, the same application compiled with Qt 5.10.0 on MacOS High Sierra works perfectly fine on Mojave... the plot thickens?