You must provide a function "qHash ( const QDomElement * key )" and return a proper value for each DomElement.