Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
4.6.3, 4.7.0, 4.7.4, 4.8.0
-
None
-
OS X 10.6.3 - 10.7.1, Qt 4.6.3 - 4.8.0 Carbon, Intel Mac Book Pro
Description
If you run the below test case, hide the application, then show it again by clicking it's icon in the dock, you'll notice the sheet no longer shows it's content and is a separate window. Furthermore, the sheet no longer blocks access to the parent. You can now interact with the parent window.
#include <QtGui> class Dialog : public QDialog { public: Dialog(QWidget *parent=0); }; Dialog::Dialog(QWidget* parent) : QDialog(parent) { setWindowModality(Qt::WindowModal); #ifdef Q_OS_MAC setWindowFlags(Qt::Sheet); #endif QGridLayout* grid = new QGridLayout(this); grid->addWidget(new QLabel("Content will disappear and sheet will disconnect from\nwindow when re shown after hiding the application"), 0,0); } int main(int argc, char **argv) { QApplication app(argc, argv); QWidget w; Dialog* d = new Dialog(&w); d->show(); w.show(); return app.exec(); }