QHash<QDomElement, QTreeWidgetItem *> itemFromElement;
To copy to clipboard, switch view to plain text mode
Well, a QDomElement is no pointer, so that does not help you here. (This function just means that you can hash any pointer types.)
If you want to hash QDomElements (do you really need to?), you must provide a function
uint qHash(const QDomElement&);
uint qHash(const QDomElement&);
To copy to clipboard, switch view to plain text mode
A possible (not nec. good) way would be to transform all the relevant stuff of a QDomElement into a QString and hash that.
I suggest to think hard about if you really need/want to hash QDomElements.
Tell us why you want to do it. Perhaps we find a different solution.
HTH
Bookmarks