Maybe a stupid question, but the goal seems to be to call setCellValue() on all vector elements.
Why not just iterate over the vector's length?
Cheers,
_
Or just call QVector::fill()
Vectors are like arrays, their elements can be accessed using the index operator []. But in contrast to arrays, they also know about their size.
QVector::count(), QVector::length() and QVector::size() are basically all equivalent getters for the number of elements in the vector.
Cheers,
_
Bookmarks