Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.1.1
-
Windows 8 64Bit msvc2012
Ubuntu 12.10
Mac OS X 10.8
-
249c5f0689bf1208a4f1d589de45c20c3ff16de9
Description
It seems that the attribute Qt::WA_QuitOnClose has no effect on windows
Example:
#include <QWidget> #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); QWidget w; w.setWindowTitle("Close This"); w.show(); QWidget w2; w2.setAttribute(Qt::WA_QuitOnClose, false); w2.setWindowTitle("This should be closed automatically"); w2.show(); return a.exec(); }
Attachments
For Gerrit Dashboard: QTBUG-31569 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
59182,2 | Ignore QWidgetWindow-based windows in QGuiApplication::shouldQuit(). | stable | qt/qtbase | Status: ABANDONED | -1 | 0 |
59241,4 | If a QWidget is ignored for auto-quit, ignore its corresponding QWindow. | stable | qt/qtbase | Status: MERGED | +2 | 0 |