Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8
-
None
-
-
ef8e548cf (dev), 8f27ca234 (6.7)
Description
A layout item for a child widget is not deleted if the layout was deactivated before the child widget is deleted. The ChildRemoved event is ignored in this case due an early return in QLayout::widgetEvent(QEvent *e).
The application crashes the next time the layout is activated and a method like totalMinimumSize() ist called because the orphaned element refers to a now invalid widget.
The bug also exists in 5.15.2 and later.
Attachments
For Gerrit Dashboard: QTBUG-124151 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
554236,1 | QLayout: Consume ChildRemoved event, when layout is disabled | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: NEW | +2 | 0 |