[Interest] How to make the QString "10" behind "9" in QMap's key order
jack ma
assangema at gmail.com
Sun Jan 7 09:01:36 CET 2018
Hi,
there is a QMap<QString,QGraphicsItem *> type, then insert values with:
type.insert("U1",nullptr),
type.insert("U2",nullptr),
…………
type.insert("U9",nullptr),
type.insert("U10",nullptr),
I want get the values follow the order of U1, U2 ... U10, but the default
order is U1, U10 ,……U9
I know this is a common string sorting problem, but I do not know how to
solve it well.
Any suggestions are very grateful !
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180107/53be73e4/attachment.html>
More information about the Interest
mailing list