Am 15.10.2014 02:26, schrieb matt.bol...@csiro.au:
Any suggestions for the best cross platform way to write canonical xml
files under Qt5 (http://en.wikipedia.org/wiki/Canonical_XML). The
complete randomness of QHash makes any sort of diff tool comparison
impossible [...]

Is QMap an alternative for your QHash? Of course, you will lose performance on insertion and lookup.

An other approach might be to get the QHash::keys(), sort them and use the result to iterate over the QHash when writing the XML file.

Best Regards / Mit freundlichen Grüßen
Rainer Wiesenfarth

--
Software Engineer | Trimble Imaging Division
Rotebühlstraße 81 | 70178 Stuttgart | Germany
Office +49 711 22881 0 | Fax +49 711 22881 11
http://www.trimble.com/imaging/ | http://www.inpho.de/

Trimble Germany GmbH, Am Prime Parc 11, 65479 Raunheim
Eingetragen beim Amtsgericht Darmstadt unter HRB 83893,
Geschäftsführer: Dr. Frank Heimberg, Hans-Jürgen Gebauer

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to