[Development] QListWidget crash in Qt4.6 on windows
GHui
ugiwgh at gmail.com
Thu Jan 10 02:10:00 CET 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130110/69884159/attachment.html>
More information about the Development
mailing list