Re: QVector::reserve() bug?
QVector::reserve() doesn't actually resize the vector but attempts to allocate memory for given amount of items. This ensures that the underlying data structure has large enough continuous memory block to enlarge up till given amount of items without need of moving data.
Re: QVector::reserve() bug?
You need to check the capacity of the vector. The size will change once you add the elements into it.
Re: QVector::reserve() bug?
Wow, only after 11 years you found a solution.
Please, look the posts date before answering anything.