W dokumentacji mamy napisane:
QVector stores its items in a vector (array). Typically, vectors are created with an initial size. For example, the following code constructs a QVector with 200 elements:
QVector<QString> vector(200);
Tymczasem u mnie w QtCreatorze z Qt5.8.0 i MSVC2015 32bit otrzymuję:
error: C2059: syntax error: 'constant'
.
O co chodzi?