Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.6.0, 4.6.3, 4.7.0
-
None
Description
When executing setEditTriggers(QAbstractItemView::NoEditTriggers) for a QColumnView the items in the first (leftmost) column remains editable. The items in the other columns become read only as expected.
Include a test case to reproduce
A workaround for this issue is to use MyColumnView instead:
class MyColumnView : public QColumnView { protected: QAbstractItemView *createColumn ( const QModelIndex & index ) { QAbstractItemView *v = QColumnView::createColumn(index); v->setEditTriggers(QAbstractItemView::NoEditTriggers); return v; } };