⚠️ Forum Maintenance: Feb 6th, 8am - 14pm (UTC+2)
2D array with dyanamic size
-
Hi,
I have created two dimentional array @QString Data[10][20]@ with constant size..
Now My application is demanding that array size should be dyanamic.What is the best way to implement two dimentional array with dyanamic size.
I am using this array to store the data of tableview.
-
If you are implementing storage for your custom model you may use a sort of QVector<QVector<QString> > to have dynamically sized matrix, or just go with QStandardItemModel which provides ready to use storage.
-
How about Boost multiArray?
or QVector<QStringList>?
std::vector<QStringList>?