Details
-
Type:
Bug
-
Status: Reported
-
Priority:
P1: Critical
-
Resolution: Unresolved
-
Affects Version/s: 6.2.2
-
Fix Version/s: None
-
Component/s: Core: Object Model
-
Labels:None
Description
When a widget connects itself to the destroyed signal of a child widget using a functor, the slot code is called when the widget itself is destroyed and after its own destructor has been called. This does not happen when connecting using using the SIGNAL/SLOT macros.
Sample project is included.
To reproduce:
- Load and run the sample project in QtCreator. Note that the qFatal() call inĀ CustomTopWidget::wasDestroyed will be reached.
- ChangeĀ constexpr bool SHOW_BUG = true; to false and rerun. This time the qFatal will not be reached.