QTreeView类和相关类的应用记录
2015-10-16 10:31
417 查看
void QTreeView::resizeColumnToContents(int column) // Resizes the column given to the size of its contents. // 将指定列宽度适应现在的文字内容显示。
void QTreeView::setColumnWidth(int column, int width) // Sets the width of the given column to the width specified. // 设置指定列宽度。
void QStandardItemModel::setHorizontalHeaderLabels(const QStringList & labels) // Sets the horizontal header labels using labels. // If necessary, the column count is increased to the size of labels.
void QStandardItemModel::clear(); // Removes all items (including header items) from the model // and sets the number of rows and columns to zero. // 删除所有数据,并且设置行列数为0。
void QStandardItem::insertRow(int row, const QList<QStandardItem *> & items) // Inserts a row at row containing items. // If necessary, the column count is increased to the size of items. // 插入一条数据。
void QTreeView::setExpanded(const QModelIndex & index, bool expanded) // Sets the item referred to by index to either collapse or expanded, // depending on the value of expanded. // 设置index指定的项是折叠的还是展开的。
相关文章推荐
- QT+cmake+opencv
- QT开发小技巧-窗口处理(一)
- PyQT信号槽_学习笔记 (Signals/Slots)
- 基于 Qt的聊天工具
- PyQt的signal 和 solit的补充
- SPOJ QTREE(树链剖分)
- PyQt 界面控件常用积累
- QT5入门之12 - QDebug输出调试信息
- pyqt 中生成二维码的代码模块
- QT5入门之12 - 禁止改变窗体大小
- QT5入门之11 - 工具栏
- QT5入门之10 - 启动程序失败,路径或者权限错误
- Qt 中使用智能指针
- pyqt4中对话框模态和非模态
- QT5入门之9 - 菜单栏
- QT5入门之8 - 定时器
- 【Qt】调用WindowsMediaPlayer进行视频播放=文章未整理=
- qt窗口部件的布局
- Qt中Model/View
- Qt下 QString转char*