if you set parent (as I see you set it ) then this widget will be deleted when parent will be deleted.