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(); }