Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.2.1
-
None
-
OS X 10.8.5 Mountain Lion, Qt 5.2.1 (binary download)
-
-
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
- replaces
-
QTBUG-36719 Mac: QMainWindow::setUnifiedTitleAndToolBarOnMac breaks title bar & popup sheets in 5.2.1 (was ok in 5.2.0)
- Closed