qt - How to unset all custom QStyledItemDelegates from QListView? -
I have set some custom reps on my list. When I reset the model QListView :: reset ();
but delegates are not reset. Is this a bug, if not, how can I reset all the delegates?
To change all the rows and set the delegate to nullptr
, but this is not a proper solution.
A map of the custom row delegates Qt, but it does not acces to it.
Zero QAbstractItemView :: setItemDelegateForRow (int row, QAbstractItemDelegate * Representative)
I need to use, so I have a list myself Maintaining ended and unset them all. As a representative with a nullptr
;
Comments
Post a Comment