Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. UI broken on MacOS Mojave using OpenGL
Forum Updated to NodeBB v4.3 + New Features

UI broken on MacOS Mojave using OpenGL

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 5 Posters 2.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    asaf-wa
    wrote on 17 Oct 2018, 13:42 last edited by
    #1

    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 the AA_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:
    0_1539783674232_Screen Shot 2018-10-17 at 16.32.15.png

    Exhibit B. Everything Breaks Down:
    0_1539783715862_Screen Shot 2018-10-17 at 16.32.26.png

    K 1 Reply Last reply 20 Oct 2018, 01:23
    0
    • A Offline
      A Offline
      AndyS
      Moderators
      wrote on 19 Oct 2018, 10:21 last edited by
      #2

      Hi @asaf-wa,

      Which version of Qt is this? A lot of fixes have gone into Qt 5.12 and some backported to 5.11 and 5.9 for Mojave, so you might need to upgrade to Qt 5.12 to check this. If it is broken there then can you report a bug at JIRA. Thanks!

      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply 21 Oct 2018, 13:57
      2
      • M Offline
        M Offline
        Michael Wilson
        wrote on 19 Oct 2018, 12:36 last edited by
        #3

        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:

        https://forum.sublimetext.com/t/sublimetext-3180-turned-into-totally-dark-after-mojave-upgraded-to-10-14-1-beta/39901/12

        1 Reply Last reply
        0
        • A asaf-wa
          17 Oct 2018, 13:42

          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 the AA_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:
          0_1539783674232_Screen Shot 2018-10-17 at 16.32.15.png

          Exhibit B. Everything Breaks Down:
          0_1539783715862_Screen Shot 2018-10-17 at 16.32.26.png

          K Offline
          K Offline
          kenchan
          wrote on 20 Oct 2018, 01:23 last edited by kenchan
          #4

          @asaf-wa

          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 :-(.

          1 Reply Last reply
          1
          • A AndyS
            19 Oct 2018, 10:21

            Hi @asaf-wa,

            Which version of Qt is this? A lot of fixes have gone into Qt 5.12 and some backported to 5.11 and 5.9 for Mojave, so you might need to upgrade to Qt 5.12 to check this. If it is broken there then can you report a bug at JIRA. Thanks!

            A Offline
            A Offline
            asaf-wa
            wrote on 21 Oct 2018, 13:57 last edited by
            #5

            @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?

            1 Reply Last reply
            0
            • A Offline
              A Offline
              AndyS
              Moderators
              wrote on 22 Oct 2018, 10:40 last edited by
              #6

              @asaf-wa Snapshots for Qt 5.12 are available via the online installer, or you can build it yourself too.

              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              A 1 Reply Last reply 28 Oct 2018, 17:33
              1
              • A AndyS
                22 Oct 2018, 10:40

                @asaf-wa Snapshots for Qt 5.12 are available via the online installer, or you can build it yourself too.

                A Offline
                A Offline
                asaf-wa
                wrote on 28 Oct 2018, 17:33 last edited by
                #7

                @AndyS
                Thanks for the suggestion: updating to Qt 5.12 beta did solve the UI problems.

                A 1 Reply Last reply 28 Oct 2018, 20:19
                2
                • A asaf-wa
                  28 Oct 2018, 17:33

                  @AndyS
                  Thanks for the suggestion: updating to Qt 5.12 beta did solve the UI problems.

                  A Offline
                  A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on 28 Oct 2018, 20:19 last edited by
                  #8

                  @asaf-wa So please close this topic as SOLVED. Thanks.

                  Qt has to stay free or it will die.

                  1 Reply Last reply
                  0

                  1/8

                  17 Oct 2018, 13:42

                  • Login

                  • Login or register to search.
                  1 out of 8
                  • First post
                    1/8
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved