Reputation: 17253
I am attempting to disable editing in my table view. I came across this thread which states that you could do the following
tableView.setEditTriggers(QAbstractView::NoEditTriggers);
My question is what is the QAbstractView here ?
Upvotes: 0
Views: 808
Reputation: 25165
that seems to be a typo and should read QAbstractItemView, which is the baseclass of QTableView where the EditTriggers enum (which NoEdittriggers is an element of) is declared.
Upvotes: 3