MistyD
MistyD

Reputation: 17253

what is QAbstractView in QT (this statement)?

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

Answers (1)

Frank Osterfeld
Frank Osterfeld

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

Related Questions