My question is basically when to choose QVector and when to choose QList as your Qt container. What I already know:
In Qt 5.7, the documentation was changed concerning the topic discussed here. In QVector it is now stated:
QVectorshould be your default first choice.QVectorwill usually give better performance thanQList, becauseQVectoralways stores its items sequentially in memory, whereQListwill allocate its items on the heap unlesssizeof(T)<=sizeof(void*)andThas been declared to be either aQ_MOVABLE_TYPEor aQ_PRIMITIVE_TYPEusingQ_DECLARE_TYPEINFO.
They refer to this article by Marc Mutz.
So the official point of view has changed.