[Interest] Qt containers deprecated with 5.0?

André Somers andre at familiesomers.nl
Mon Nov 28 11:40:03 CET 2016



Op 28/11/2016 om 11:27 schreef Michael Sué:
> Hi André,
>
>> There is nothing wrong with using Qt containers either (with the exception of QList, which you will want to stear clear of as much as you can), as as
>> noted, you can (and should) use the std algorithms on them just fine.
> What's wrong with QList (as compared to other implementations of a list)?
>
What makes you think that QList implements a list (like other 
implementions at least)?

Anyway: see the blog or one of the recorded talks from Qt conferences on 
this topic. You will want to get into the habbit of raising a red flag 
whenever you do a code review and find a QList, and start typing QVector 
instead of QList whenevery you write code yourself.

André




More information about the Interest mailing list