Hi Everyone, I was wondering if anyone know what the correct/best way to deselect items inside of a qtreeview is ? At the moment im trying to do something like this but it doesn't seem to be doing anything
selectionModel = self.selectionModel() selectionModel.select(itemToDeselect, QtGui.QItemSelectionModel.deselect) after doing this the item is still selected in the gui but if I do selectionModel.isSelected(itemToDeselect) then it returns False. Any ideas/suggestions would be greatly appreciated thanks babak -- View this message in context: http://www.nabble.com/Deselecting-items-in-qtreeview-tp21848694p21848694.html Sent from the PyQt mailing list archive at Nabble.com. _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
