I create an object with QListWidget, and add 400 items(QListWidgetItem). When I 
select all items with mouse, and then click a button to execute 
item(i)->setHidden(true), the program will crash. But if I didn't select items 
with mouse, but others, such as Ctrl+a, it won't crash. 
I think, maybe something wrong mouse event response on QListWidget.

The error message is following.
-----------------------------------
ASSERT failure in QVector<T>::at: "index out of range", file 
..\..\include/QtCore/../../src/corelib/tools/qvector.h, line 338 


qvector.h:338
----------------
336:   template <typename T> 337:  inline const T &QVector<T>::at(int i) const 
338:  { Q_ASSERT_X(i >= 0 && i < d->size, "QVector<T>::at", "index out of 
range"); 339:   return p->array[i]; }

Any help will be appreciated.

Thanks,
GHui
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to