Window.queueWidgetDestroy

Allows queue destroy of widget.

Sometimes when you have very complicated UI with dynamic create/destroy lists of widgets calling simple destroy() on widget makes segmentation fault.

Usually because you destroy widget that on some stage call another that tries to destroy widget that calls it. When the control flow returns widget not exist and you have seg. fault.

This function use internally QueueDestroyEvent.

class Window
void
queueWidgetDestroy

Meta