• 3721阅读
  • 1回复

setExpandsOnDoubleClick不好用(resolved) [复制链接]

上一主题 下一主题
离线sakiola
 
只看楼主 倒序阅读 楼主  发表于: 2009-08-18
expandsOnDoubleClick : bool

This property holds whether the items can be expanded by double-clicking.

This property holds whether the user can expand and collapse items by double-clicking. The default value is true.

This property was introduced in Qt 4.4.

Access functions:

bool expandsOnDoubleClick () const
void setExpandsOnDoubleClick ( bool enable )

对于treeView加了setExpandsOnDoubleClick(true)这个属性后怎么不好用呢?

默认不是true的吗?其实照文档看 应该是不放这个属性也会好用啊

为什么双击item的时候 进入的是编辑状态?而不像文档所说的
[ 此帖被sakiola在2009-08-18 17:03重新编辑 ]
NB才是王道
离线sakiola
只看该作者 1楼 发表于: 2009-08-18
TKS for ladybug

resolved

设置
QAbstractItemView::NoEditTriggers
NB才是王道
快速回复
限100 字节
 
上一个 下一个