> 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.
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to