There is no direct equivalent in QT to the std::deque class.
However, it is best to use a QList .
Here's what the documentation on QT container classes says:
For most purposes, QList is a suitable class. Its index-based API is more convenient than the QLinkedList iterator-based API, and it is usually faster than QVector because of the way it stores its elements in memory. It also expands to less code in your executable.
In any case, if you only add items once per second, there will not be much influence on the selection of one of them.
source share