[QTBUG-61213] Widget crashes during setAttribute(Qt::WA_WindowPropagation) Created: 03 Jun '17 Updated: 19 Dec '17 Resolved: 19 Dec '17
|Component/s:||Widgets: Widgets and Dialogs|
|Reporter:||Gary Holmlund||Assignee:||Richard Moe Gustavsen|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
The following lines will crash Qt:
QWidget* w = new QWidget(nullptr);
Crashes with Qt 5.9, but not previous versions. Adding a parent to the widget will eliminate the crash. See attached project.
|Comment by Alex [ 30 Jun '17 ]|
|Comment by Roman Telezhynskyi [ 24 Jul '17 ]|
I met the same bug. It still presents in version 5.9.1.
|Comment by Arman [ 01 Aug '17 ]|
The same behaviour.
|Comment by Thomas Sondergaard [ 16 Nov '17 ]|
Just upgraded from 5.7.1 and hit this bug. Here is a minimal example:
and a stacktrace:
The problem is that in the following code q->parentWidget() returns null: