Hi,
In Qt3 I used QArray like this:
Code:
QArray<float> *t; ... t = new QArray<float>(day_no+1); ... t->at(j) = j+1;
and that worked. But in Qt4 you cannot do that. So I changed it:
Code:
QVector<float> t; ... t[j] = j+1;
and that compiles OK but I want to do it like I did in Qt3 and allocate t as new:
Code:
t = new QVector<float>(day_no+1);
But how do I do the assignment then like line 3 in the middle chunk of the above?
Thanks!