Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
QItemSelection.remove() や QItemSelection.deselect() のようなものを見つけることができませんでした。これを行う最善の方法は何ですか?
これまでのところ、これを行うために私が見つけた最良の方法は、選択を解除するマージセットで2番目の選択を使用することです:
deselection = QItemSelection(curr_index, curr_index) # Can I coin deselection? ;) selection.merge(deselection, QItemSelectionModel.Deselect)