What are you trying to do exactly?
Do you want to make it use qDeleteAll, or what?
By the way, the implementation of the "node" struct is very confusing. The item given to be stored is copied in the ctor using shallow copy, but then you delete it in the dtor like it were a deep copy. This will lead to troubles.
Bookmarks