Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to disable editing in QTableView
Indrajeet last edited by
I have created a QTableView & I m using the different table view with same model in 2 different tabs.
Here I want set different FLAG property[i.e enable & disable] to my table view located in 2 different tabs.
How to achieve this?
fluca1978 last edited by
Does this solve the problem?
andre last edited by
That works. If you want to have more detailed control, you will need to use a proxy model and modify the editable flags in there.
broadpeak last edited by
If you don't use the "setData" on the model, that will be read-only. And don't add the "Qt::ItemIsEditable" to the flags.
pasomas last edited by
[quote author="fluca1978" date="1320833028"]Does this solve the problem?
I think is