what is QAbstractView in QT (this statement)?

﹥>﹥吖頭↗ 提交于 2019-12-08 11:54:29

问题


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 ?


回答1:


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.



来源:https://stackoverflow.com/questions/20023435/what-is-qabstractview-in-qt-this-statement

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!