What is item_ ? If it is derived from QObject then qt will delete it when its parent is deleted and that might be the source of your problem