Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

[SOLVED] Does calling remove() on a QMap call the deleted item's destructor?

$
0
0
Topic title says it all. I looked around and couldn’t find a clear answer to this simple question. I have a QMap<QString, Node *> filled with nodes. When calling QMap<QString, Node *>::remove(node->objectName()); will the Node class destructor be called automatically or should I delete the node manually?

Viewing all articles
Browse latest Browse all 13965

Trending Articles