Order of items in QMap and QMultiMap
问题 I would like to use QMultiMap (which is derived from QMap ) to store key/value pairs. Since I can have keys multiple times I would prefer to use QMultiMap . Assume I would insert the following pairs in the given order: "C" -> 5 "A" -> 10 "B" -> 77 "B" -> 1 "X" -> 314159 When iterating over the map (using java style iterators preferably) I need the order of equal-key-pairs to be preserved. I.e. "B" -> 77 and "B" -> 1 should appear exactly in insertion order when iterating. The order between