Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.6.1
-
None
-
Windows 8.1
Description
In our project we use a QtTreePropertyBrowser to display/edit properties of a selected item. When clicking a property in the view an editor (QSpinBox, QLineEdit, etc...) opens. Sometimes these editors don't get closed when selecting another property.
After some debugging this seems to be caused by QAbstractItemViewPrivate::persistant containing dead editors. Everytime i select another item in our project, the view gets rebuild and persistent gets bigger and bigger, containing the addresses of old (destroyed) editors (the data-pointer contains values like 0xdcdcdcdcd).
It seems that sometimes new editors will reuse these addresses and will get identified as a persistent editor. Those editors won't get closed when selecting another property.
A workaround is to call QAbstractItemView::reset() which clears the set. It would be better though, if the dead editor would be removed automatically.