PDA

View Full Version : how to make a row read-only row in QTableView



nageshvk
28th October 2010, 12:41
hi

I need to make few rows as read-only in the list of rows added to QTableView

please help me.


Regards
Nagesh

Talei
28th October 2010, 14:04
Set
setEditable( false ); for items in the model.

anamr
29th October 2010, 18:15
same as Talei said

use
setEditable(false);

Lykurg
29th October 2010, 20:37
same as Talei said

use
setEditable(false);
?!?

You can also subclass your model und reimp the flags() method and alter the item flags for spezific indexes.