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

[macOS] QMacToolBar breaks QWidget geometry in macOS Big Sur

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.13.2, 5.14.2, 5.15.0
    • Widgets: Main Window
    • None
    • macOS Big Sur (20A5343i) but it also appeared in all previous betas.
    • macOS

    Description

      After using QMacToolBar the window geometry is broken: it jumps on the screen on Widget::resize instead of resizing. Once you comment the attachToWindow call, all works fine. Test project attached + sample videos.

      Looks like the problem with the cocoa integration plugin:
      /qtbase/src/plugins/platforms/cocoa/qcocoawindow.mm
      /qtbase/src/plugins/platforms/cocoa/qcocoanativeinterface.mm

      Attachments

        1. broken.mov
          1.12 MB
        2. expected.mov
          1.79 MB
        3. untitled.zip
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            crystalidea Steven (crystalidea)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes