博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Qt - 设置TableWidget只读
阅读量:4626 次
发布时间:2019-06-09

本文共 956 字,大约阅读时间需要 3 分钟。

ui->infoViewTW->setEditTriggers(QAbstractItemView::NoEditTriggers);
enum QAbstractItemView::EditTriggerflags QAbstractItemView::EditTriggersThis enum describes actions which will initiate item editing.ConstantValueDescriptionQAbstractItemView::NoEditTriggers0No editing possible.QAbstractItemView::CurrentChanged1Editing start whenever current item changes.QAbstractItemView::DoubleClicked2Editing starts when an item is double clicked.QAbstractItemView::SelectedClicked4Editing starts when clicking on an already selected item.QAbstractItemView::EditKeyPressed8Editing starts when the platform edit key has been pressed over an item.QAbstractItemView::AnyKeyPressed16Editing starts when any key is pressed over an item.QAbstractItemView::AllEditTriggers31Editing starts for all above actions.The EditTriggers type is a typedef for QFlags
. It stores an OR combination of EditTrigger values.

 

转载于:https://www.cnblogs.com/Pan-Z/p/6290304.html

你可能感兴趣的文章
python格式化输出的方式汇总
查看>>
linux 安装中文包和设置中文环境
查看>>
Mac 使用WireShark
查看>>
OpenCV---环境安装和初次使用
查看>>
回调函数的经典代码使用
查看>>
【学术篇】bzoj3262 陌上花开. cdq分治入门
查看>>
daily scrum 12.8
查看>>
Nginx初识
查看>>
EOJ 2847 路由结点
查看>>
题解 化学反应
查看>>
题解 楼房重建
查看>>
Python汉字转换成拼音
查看>>
高德地图:定位、覆盖物
查看>>
抽象类不能实例化对象
查看>>
树状数组(hdu-4325,hdu-1166,pat-1057)
查看>>
C#引用类型参数,ref按引用传值
查看>>
Flume简介与使用(二)——Thrift Source采集数据
查看>>
原生对象-Array
查看>>
词法解析的基本原理
查看>>
IDEA安装
查看>>