Hello, colleagues !
I make MDi application, and test setting model into treeview such as
tv->setModel (radModel);
QMdiSubWindow * subW = m_mdiArea->addSubWindow (tv);
tv->show ();
QTreeView * tv = new QTreeView;
QAbstractItemModel * radModel = new QStandardItemModel (2*11776, 100000, 0);
tv->setModel (radModel);
QMdiSubWindow * subW = m_mdiArea->addSubWindow (tv);
tv->show ();
To copy to clipboard, switch view to plain text mode
But one bug arises
ASSERT failure in QVector<T>::at: "index out of range", file ../../include/QtCore/../../src/corelib/tools/qvector.h, line 351
If I try to construct model with 10000 columns then all works fine. Where is my error and which way I have to solve this problem ?
Bookmarks