Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
None
-
5.3.1
-
Qt 5.3.1 with patch https://codereview.qt-project.org/#/c/95499 applied.
OS X 10.9, Xcode 6.0.1
-
-
aeb169a48869f4f50237e384e57ccb406228f620
Description
When calling setParent on a widget i sometimes gets this crash. Using the minimal example below i can reproduce the issue usually after having double clicked about 3-4 times - sometimes it crashed on 1st snap in, sometimes after tenth attempt.
This is most likely to be a dangling pointer problem.
Applying the patch of QTBUG-39628 did not help to solve the problem.
Calling toggleParent() by event loop using QMetaObject::invokeMethod() does not solve the problem but makes it more difficult to reproduce.