[Interest] QMultiHash / QMultiMap: insert QList?

Schimkowitsch Robert Robert.Schimkowitsch at andritz.com
Thu Oct 8 14:44:13 CEST 2026


Hi,

“QMultiHash has the interesting property that the multiple values are implicitly ordered with the last to be inserted returned first in .values().  “

That’s a good gotcha to know about.

> Again, if that's your use case, having a QHash<key, QList<value>> may generally be much more efficient anyhow.



I guess that’s the end of the story for me. 😊

Thanks for your feedback!



Robert





________________________________

This message and any attachments are solely for the use of the intended recipients. They may contain privileged and/or confidential information or other information protected from disclosure. If you are not an intended recipient, you are hereby notified that you received this email in error and that any review, dissemination, distribution or copying of this email and any attachment is strictly prohibited. If you have received this email in error, please contact the sender and delete the message and any attachment from your system.

ANDRITZ HYDRO GmbH


Rechtsform/ Legal form: Gesellschaft mit beschränkter Haftung / Corporation

Firmensitz/ Registered seat: Wien

Firmenbuchgericht/ Court of registry: Handelsgericht Wien

Firmenbuchnummer/ Company registration: FN 61833 g

DVR: 0605077

UID-Nr.: ATU14756806


Thank You
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20261008/4fd30c15/attachment.htm>


More information about the Interest mailing list