Better to use QVector here, because the QgsLineString/QgsGeometry methods all use QVector too, and we want to avoid unnecessary list->vector conversions.