Be sure not to delete items from within slots connected to signals that have the item (or its index) as their parameter.