tags:

views:

39

answers:

2

Hi.,

i am using QTableView. it's working fine. but the problem is if i double click the cell then it's change into edit mode. i need to disable the edit option. How to do that. please help me to find the solution.

A: 

Use the editTriggers property to change the behaviour

Patrice Bernassola
+3  A: 

Use

QTableView table(...);
table.setEditTriggers(QAbstractView::NoEditTriggers);
bruno
Thanks. it's working.
saravanan