[Development] Is QMap Broken

Tomasz Siekierda sierdzio at gmail.com
Thu Nov 6 11:10:10 CET 2014


> 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.

Yeah I agree, that sounds much better. Thanks.



More information about the Development mailing list