Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
4.8.2
-
None
-
windows 7
-
qt5:fd6a870136ab2fdb3ce8b516abcf8c05d45caba7, Qt4:85e95859047d2c198e495cd4cb6a4352df76e6d4
Description
Code relevent to this is attached. There is a TreeView in the code and if clikcing on 0th element is followed by clicking on 3rd element(last Element) caueses a crash.
This is not recreated in Windows XP only crash in Windows 7.
Following part seems to be responsible for the crash.
int QTreeViewPrivate::itemHeight(int item) const { if (uniformRowHeights) return defaultItemHeight; if (viewItems.isEmpty()) return 0; const QModelIndex &index = viewItems.at(item).index; if (!index.isValid()) return 0; int height = viewItems.at(item).height; if (height <= 0) { height = q_func()->indexRowSizeHint(index); viewItems[item].height = height; } return qMax(height, 0); }