Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.7.0, 5.9.0, 5.9.3
-
None
-
Windows 7, Windows 10, MSVC 2015, 64-bit
Description
In the following example, uncommenting of the marked line causes the `w2` window to not close automatically.
This bug is similar to https://bugreports.qt.io/browse/QTBUG-31569 (which was already solved for Qt 5.1.1).
#include <QWidget> #include <QApplication> #include <QQuickWidget> int main(int argc, char *argv[]) { QApplication a(argc, argv); QWidget w; w.setWindowTitle("Close This"); w.show(); QWidget w2; // new QQuickWidget(&w2); <--------- uncomment this to have the wrong behavior w2.setAttribute(Qt::WA_QuitOnClose, false); w2.setWindowTitle("This should be closed automatically"); w2.show(); return a.exec(); }
Attachments
Issue Links
- relates to
-
QTBUG-63945 QtWebEngine causing crash on exit
- Closed