[PyQt] Deselecting items in qtreeview
Baba-k
babakage at gmail.com
Thu Feb 5 10:20:27 GMT 2009
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.
More information about the PyQt
mailing list