Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-64494

macOS layer-backed OpenGL windows retina -> non-retina move bug

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.10
    • 5.6.2, 5.9.2
    • QPA
    • None
    • macOS High Sierra 10.13.1, Macbook Pro 2017
    • macOS
    • bdf1045b715e43eaedd1d9c4de78c4d7ce0e28ba

    Description

      The bug reproduces with a retina MacBook with a connected non-retina screen, that is used as a separate screen, not mirroring the main screen on it.

      1. Create window containing an QOpenGLWidget, like "hellogl2" example from Qt source.
      2. Build and launch it regularly – works as expected.
      3. Launch it with command line "QT_MAC_WANTS_LAYER=1 ./hellogl2.app/Contents/MacOS/hellogl2"
      4. It works fine on the main (retina) screen.
      5. Drag it to the secondary (non retina) screen and the rendering is "zoomed-out", all the content is displayed only in left-lower quarter of the window, the rest is black.

      If the layer-backed window with QOpenGLWidget inside is created on the non-retina screen and then moved to retina screen the effect is opposite – all the window content is "zoomed-in", so that the whole window displays only one quarter of its actual content.

      Screenshots attached.

      Attachments

        1. bug_non-retina.png
          bug_non-retina.png
          72 kB
        2. bug_retina.png
          bug_retina.png
          40 kB

        Activity

          People

            sorvig Morten Sørvig
            johnpreston John Preston
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: