Hi, I have a QMap filled with pointers to objects, and I'd like to ask what's the proper way to delete them.

I planned to loop though the map and delete the items one by one... but I saw the "clear()" method.

void QMap::clear ()
Removes all items from the map.


Does it means "clear()" will delete dynamic objects and free the memory?

thanks!