Reserve enough of space for all vertices instead of dynamically expanding the QVector to accommodate for new data. (cherry picked from commit a62dc131)