Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
6.0.0
-
None
-
-
6fbcfd9164ae23b221ebce7fc3185505a8a1fb6e (qt/qtbase/dev) b14a33ff671b555b3677a012867489e174cb98e7 (qt/qtbase/6.0)
Description
The attached testcase crashes with Qt6 but not with Qt5 even I don't understand why. The fix is trivial but I'm not sure if we should allow to override startDrag() in QListView and if the QVector behavior in Qt5 is correct. Even valgrind does not print anything about this strange access:
void killMe(const QVector<QModelIndex> &indexes)
{
qDebug() << indexes.capacity() << *indexes.begin();
}
...
killMe({})
The original report comes from https://www.qtcentre.org/threads/71383-Qt6-StartDrag-making-crash-on-Qt6
Attachments
For Gerrit Dashboard: QTBUG-89434 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
327803,2 | QListView: don't crash when an empty container is passed to itemsRect() | 6.0 | qt/qtbase | Status: MERGED | +2 | 0 |
327880,6 | QListView: don't crash when an empty container is passed to itemsRect() | dev | qt/qtbase | Status: MERGED | +2 | 0 |