How to define edit triggers in the QStyledItemDelegate
General and Desktop
1
Posts
1
Posters
851
Views
1
Watching
-
I have the custom QStyledItemDelegate that shows checkbox. It uses paint() to draw the editor, and editorEvent() to change data. This delegate used in the QTableWidget.
How I can to determine is parent Table of delegate is editable or not ( in the editorEvent() )?
I used setEditTriggers( QAbstractItemView::NoEditTriggers ) to disable editing in the table.