Normally when I delete an object I set it to zero. This helps in that I code my routines to check the object is not zero then proceed.
However if I use the deleteLater()
function I have lost control of it. I don't know if its a valid item or if I need to create a new one. The solution I found was just to keep track of the state separately however is there a better way?