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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -