Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
None
-
6.2.1
-
None
Description
When a QTreeView is getting focus
data is asked for CheckStateRole for all items starting from 0,0 to
the selected one.
I am having an own model derived from QAbstractItemModel with 60k+ rows and 21 columns. I noticed the application is blocking for several minutes in some rare cases. Found the issue being reproducible by changing focus either to another application or just another widget and then back to the QTreeView. I am not using checkboxes still QTreeView traverses all my items starting from the very first row to the currently selected row reading all columns with the CheckStateRole, which takes minutes if I have selected an item further to the end of the data. Then QTreeView fetches the data using different roles of the items visible, which is fine.
Please, fix the bug or provide a workaround.