• 6332阅读
  • 1回复

关于QTreeView的问题 [复制链接]

上一主题 下一主题
离线327827371
 
只看楼主 倒序阅读 楼主  发表于: 2010-09-14
— 本帖被 XChinux 从 General Qt Programming 移动到本区(2011-01-02) —
想用QTreeView实现一个qq用户列表的效果,想要改变子节点的缩进距离请问要怎么实现  
离线ztwaker
只看该作者 1楼 发表于: 2010-12-06
indentation : int

This property holds indentation of the items in the tree view.

This property holds the indentation measured in pixels of the items for each level in the tree view. For top-level items, the indentation specifies the horizontal distance from the viewport edge to the items in the first column; for child items, it specifies their indentation from their parent items.

By default, this property has a value of 20.

Access functions:

int indentation () const
void setIndentation ( int i )

above information from Qt Assistant. hope it helps :)
Software designer, implementor
快速回复
限100 字节
 
上一个 下一个