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

Wrong coordinates when changing screen scaling while application runs on MacOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.11.2
    • 5.11.1
    • GUI: Window management
    • None
    • macOS

    Description

      On MacOS 10.13.6 with Qt 5.11.1 I get the following error: When the screen scaling is changed during the runtime of an application the coordinates of QML items are all offset incorrectly. Once the windows titlebar was clicked and the window is moved slightly the coordinates are back to normal. This leads me to assume that the "scaling-has-changed" event is somehow not handled correctly and only once the "window-was-moved" event is handled the coordinates are calculated correctly.

      The bug was verified on two different machines both with HiDPI displays.

      I have compiled a minimal working example with instructions on how to reproduce it here: https://github.com/Foaly/Qt-Bugs/tree/master/screen_scaling_coords_macos

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vestbo Tor Arne Vestbø
            maximilian_wagenbach Maximilian Wagenbach
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes