Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.12
-
-
21dcb96ddca357a6e8ace4b1c7252ec465e77727 (qt/qtbase/5.12)
Description
When WIndows flags are set to be frameless in QDialog, this some time crashes.
Attached example can be used to crash it on windows as well on Mac,
Steps, run the code and hit Menu->test
(it may crash here on Mac)
this will show frame-less dialog, click any where in dialog to close it. (it may crash here )
This crash is not reproducible with every try but it is reproducible with most .
This works good with Qt5.10.1 but broken in 5.11.0.
Stack
Qt5Cored.dll!QObject::isWidgetType() Line 142
qobject_cast<QWidget *>(QObject * o) Line 742
updateObjects(const QList<QObject const *> & objects) Line 2732
QStyleSheetStyle::repolish(QWidget * w) Line 2911
QWidgetPrivate::inheritStyle() Line 2823
QWidget::setParent(QWidget * parent, QFlags<enum Qt::WindowType> f) Line 10748
Qt5Widgetsd.dll!QWidgetPrivate::setWindowFlags(QFlags<enum Qt::WindowType> flags) Line 10558
Qt5Widgetsd.dll!QWidget::setWindowFlags(QFlags<enum Qt::WindowType> flags) Line 10520
crash_test.exe!DlgAboutNew::DlgAboutNew(QWidget * parent) Line 14
crash_test.exe!MainWindow::on_actiontest_triggered() Line 20
Attachments
Issue Links
- resulted in
-
QTBUG-75361 Widget Styles Missing
- Closed
-
QTBUG-75810 Stylesheet does not propagate properly in some cases
- Closed