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

macOS: Window geometry is not updated correctly when the OS rejects a change by setGeometry

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2.4, 6.10
    • QPA
    • None
    • macOS

    Description

      I have a frameless window that can be moved around with right click anywhere on the window. This means that it is intended to be possible to move it partially outside the screen in all directions. Unfortunately macOS stops any window from exiting the screen upwards. This wouldn't be a huge issue if it wasn't for this bug, where Qt seems to think that the window was actually moved, even though macOS stopped it.

      The geometry seems to be updated when the Qt detects that the window becomes fully outside the screen, and then moved back? See the attached video showing the issue with the windowflags example.

      It becomes a big issue in my case since I have my own window resizing code etc that all depend on frameGeometry being correct, which it isn't if you push the window into the menu bar a bit.

      Attachments

        For Gerrit Dashboard: QTBUG-136045
        # Subject Branch Project Status CR V

        Activity

          People

            vestbo Tor Arne Vestbø
            cyriuz Viktor Arvidsson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change