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

OS X: Bad positioning of modal QDialog

XMLWordPrintable

    • macOS

      Despite what the doc says :

      A dialog is always a top-level widget, but if it has a parent, its default location is centered on top of the parent. It will also share the parent's taskbar entry.

      On MAC, the first QDialog which is a children of a QMainWindow is centered horizontally on the screen, not on the parent.(see first_dialog.jpg)
      Sub-dialogs will be displayed in cascade :-/ which is really ugly. (see children_dialogs.jpg)

      (No problems on Windows/Linux)

      (QTBUG-31453 may be related to this one)

        1. CenterDialog.zip
          3 kB
        2. children_dialogs.tiff
          108 kB
        3. first_dialog.tiff
          72 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            srutledg Shawn Rutledge
            redkite Gauthier Brion
            Votes:
            4 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes