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

OS X: Visual gap between sheet (window modal) dialogs and window title

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.3.0 Beta1
    • 5.2.1
    • GUI: Window management
    • None
    • OS X 10.8.5 Mountain Lion, Qt 5.2.1 (binary download)
    • macOS
    • 3b8b47db6aaeb333f106cff57cc712b01d828302

    Description

      On Mac OS X sheet dialogs (window modal dialogs) are drawn way below the window title, see attached screenshot. They seem to be placed somewhere under the toolbar, and even there is a visible "gap". They should be placed right under the window title bar.

      This is a regression in Qt 5.2.1 - it worked fine in Qt 5.2.0.

      Relevant code:

          QFileDialog *fileDialog = new QFileDialog(this, Qt::Sheet);
          fileDialog->setNameFilter(sceneFilter);
          fileDialog->setDefaultSuffix(FileUtils::SceneExtension);
          fileDialog->setWindowTitle(tr("Save As"));
          fileDialog->setDirectory(lastDocumentDirectoryPath);
          fileDialog->selectFile(documentManager.getDocumentName(*this));
          fileDialog->setWindowModality(Qt::WindowModal);
          fileDialog->setAcceptMode(QFileDialog::AcceptSave);
          fileDialog->setAttribute(Qt::WA_DeleteOnClose);
          fileDialog->connect(fileDialog, SIGNAL(finished(int)),
                              this, SLOT(handleDialogClosed()));
          fileDialog->open(this, SLOT(handleFileSaveAsBeforeCloseSelected(const QString &)));
      

      Attachments

        1. Save As Sheet dialog in Qt 5.2.0.png
          42 kB
          Oliver Knoll
        2. Save As Sheet in Qt 5.2.1.png
          55 kB
          Oliver Knoll
        3. Sheet Dialog Below Title Bar.png
          105 kB
          Oliver Knoll
        4. Sheet Dialog in Write application.png
          112 kB
          Oliver Knoll
        5. SheetDialogOffset.zip
          5 kB
          Oliver Knoll
        6. Sheet dialog with unified toolbar Qt 5.2.1.png
          114 kB
          Oliver Knoll
        7. Sheet dialog with workaround 50px minimum height tool bar.png
          108 kB
          Oliver Knoll

        Issue Links

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

          Activity

            People

              sorvig Morten Sørvig
              till213 Oliver Knoll
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes