I think QMap just follows std::map, which is why it's ordered and why the pairs have firsts and seconds just like std::pair.
On 06. 11. 14 09:13, André Somers wrote: > Tomasz Siekierda schreef op 6-11-2014 09:10: >> To store 2 items at a single position in list/ vector, you can use >> QPair, like this: QLIst<QPair<type1, type2> >() > Better yet, just use a struct then. QPair in my experience results in > badly readable code. Who will ever remember down the line what was > first, and what was second? And the moment you end up needing a third > item, QPair is insufficient anyway. > > André > > _______________________________________________ > Development mailing list > [email protected] > http://lists.qt-project.org/mailman/listinfo/development -- Ayberk Özgür, Doctoral Researcher Robotics Group, CHILI Laboratory, EPFL www.ayberkozgur.com _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
