QStandardItemModel limits
folks,
I used a QStandardItemModel to display a bunch of numbers.. and found that my apps crush if the number of items (row) is really big like 25000.
so i was wondering if QStandardItemModel has limitation in rows or its the QTableView has limitation by the way i used QTableView as my viewer.....
baray98
Re: QStandardItemModel limits
Can you provide a minimal compilable example reproducing the problem?
Re: QStandardItemModel limits
Code:
#include <QtGui>
#include <QPushButton>
int main (int argc,char *argv[])
{
view.setModel(&model);
for (int row = 0 ; row <20000 ; row++)
{
model.setItem(row, 0, item);
}
view.show();
return app.exec();
}
Re: QStandardItemModel limits
I got my error ... its passing an integer when i created QStandardItem