No reason except that I use the C++ standard template library (STL) in preference to the Qt library when equivalent classes exist in both. Much of the non-GUI code I write has to be portable as libraries used in non-Qt applications, so I have just adopted the habit of using the STL everywhere possible. If I were to write something using Qt container classes that I later decided should be shared in a library, then I have a bunch of rewriting and testing to convert it to STL when I could have done it that way in the first place.Anyway, you created a standard vector... why not QVector?
That said, QVector has the same semantics as std::vector and can be used in any of the STL or boost algorithms that operate on containers that implement random iterator access.
Bookmarks