PDA

View Full Version : How to do select and unselect row in QTableVie ?



RameshNani
6th March 2017, 13:37
Hi All,

I have QTableView, When i click on row the row should be select , again if i click on selected row , it should be unselect , is there a way to do it ?

high_flyer
6th March 2017, 16:37
Have a look at QItemSelectionModel

RameshNani
7th March 2017, 11:05
Hi ,

Thanks For your reply.

I go through selectionmodel, but i am unable to identify which one used to support this functionality, can you suggest me ?

high_flyer
8th March 2017, 12:02
but i am unable to identify which one used to support this functionality
What do you mean by 'which one'?
What are the options you see?