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

QDialog::setSizeGripEnabled does not disable Mac OS Cocoa resizer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 4.6.3
    • None
    • Mac OS X 10.5.4, Qt 4.6.3, Cocoa
    • macOS

    Description

      QDialog::setSizeGripEnabled hides the QSizeGrip widget placed in the bottom left of the window, however this does not affect any resize grip displayed by the underlying NSWindow.

      QWidgetPrivate::qt_mac_update_sizer disables the NSWindow resizer, however it only does so if:

      • The QSizeGrip is present, or
      • The window has no frame, or
      • The window's min size == the window's max size

      This does not handle the case where a QDialog has a frame, hasn't had its min/max clamped, and yet QDialog::setSizeGripEnabled(false) was called.

      qt_mac_update_sizer should also see if the widget is a QDialog, and if so always hide the NSWindow resizer (since QDialog will provide one if required).

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            refnum Dair Grant
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes