Hi ,I am working on Qt4.4.I came across one problem with QVector.I declared a vector containing another vector of type QString.
QVector<QVector<QString> *>mainvec;
QVector<QVector<QString> *>mainvec;
To copy to clipboard, switch view to plain text mode
Now I want to insert data into vector ie I want to insert 50*50 data into vector mainvec .for that the code i used is
1 for (int i = 0; i < 50; ++i)
2 for (int j = 0; j < 50; ++j)
3 data[i]->push_back("data");
1 for (int i = 0; i < 50; ++i)
2 for (int j = 0; j < 50; ++j)
3 data[i]->push_back("data");
To copy to clipboard, switch view to plain text mode
if I do this my execution was breaking when it comes to the line 3.
So please help me to solve the problem
With Regards,
Sudheer.
Bookmarks