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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical 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

      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 &)));
      

        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
        For Gerrit Dashboard: QTBUG-36700
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes