How to clear the selection of QListView when multiple items are selected?

后端 未结 2 1360

I am working on a Qt App where I have a QListView. There are few items present in the list. My application requires items to be rearranged according to user\'s choice. Every

2条回答
  •  [愿得一人]
    2021-01-20 11:56

    Use the QAbstractItemView::clearSelection function.

    If you have subclassed QListView you can just call it with clearSelection();

提交回复
热议问题