qskinny icon indicating copy to clipboard operation
qskinny copied to clipboard

Blocking visibleChanged signals from children during deconstruction

Open uwerat opened this issue 3 years ago • 1 comments

When deconstructing a QQuickItem all children are becoming reparented ( -> no parent item ), what might lead to visibleChanged signals. When the parent is monitoring the visibility of the children using this signal the connected slot will be called in an almost deconstructed state usually ending up as crashes.

To avoid this situation all layout classes have to disconnect manually in the destructor.

A better solution would be if we could handle this problem in a more general way in ~QskQuickItem.

uwerat avatar Nov 02 '21 07:11 uwerat