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

        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