Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.2.2
-
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.