QVector will call the destructor of its item when the item is removed from it using pop_back
, clear
or any other way.
If there is a shared pointer to an object in the vector and there is no more shared pointers to this object anywhere in the program, removing a shared pointer from the vector will definitely cause object deleting.
If there are shared pointers to this object somewhere else, the object will not be deleted until all references are removed.