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

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -