[Interest] Set model into treeview

Yuriy Rusinov yrusinov at gmail.com
Mon Dec 24 09:52:17 CET 2012


Hello, colleagues !

I make MDi application, and test setting model into treeview such as

    QTreeView * tv = new QTreeView;
    QAbstractItemModel * radModel = new QStandardItemModel (2*11776,
100000, 0);
    tv->setModel (radModel);
    QMdiSubWindow * subW = m_mdiArea->addSubWindow (tv);
    tv->show ();

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 ?

-- 
Best regards,
Sincerely yours,
Yuriy Rusinov.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20121224/35bbbefd/attachment.html>


More information about the Interest mailing list