2D: Add auto test for stale barset crash


 In the componentComplete, the list of children is
iterated. If a child is a barset, it's added to the series.
If a QBarModelMapper calls deleteLater for undetached barset before
the componentComplete is called for a barseries, it tries to qobject_cast
a deleted object. The patch sets a barset's parent to nullptr before the
call to deleteLater.

Pick-to: 6.12
Change-Id: I58e78eb446541a3c31fc8753ce98acf5c341cd78
Reviewed-by: Tomi Korpipaa <tomi.korpipaa@qt.io>
commite149f78a0d4a494ad3ba111e51b59a57548084ea
parent659893e8964d3d9aea54ada9c4cb01f3053fd245
authorSami Varanka <sami.varanka@qt.io>
committerSami Varanka <sami.varanka@qt.io>
commit timeFri, 9 Oct 2026 12:06:21 +0000