清空Qtablewiget 表格的内容
2012-08-02 11:26
176 查看
转载自/article/1547575.html
今天用到了Qtablewiget 清空表格内容;
其中:
[cpp]
view plaincopyprint?
void QTableWidget::clear () [slot]//清空掉表格内所有内容,包括标题头
Removes all items in the view. This will also remove all selections. The table dimensions stay the same.
void QTableWidget::clearContents () [slot]//这个清空所有内容不包括标题头
Removes all items not in the headers from the view. This will also remove all selections. The table dimensions stay the same.
[cpp]
view plaincopyprint?
void QTableWidget::removeColumn ( int column ) [slot]//这个是删除一列,而不是清空表格
Removes the column column and all its items from the table.
void QTableWidget::removeRow ( int row ) [slot]//这个是删除一行,不是清空一行
Removes the row row and all its items from the table.
今天用到了Qtablewiget 清空表格内容;
其中:
[cpp]
view plaincopyprint?
void QTableWidget::clear () [slot]//清空掉表格内所有内容,包括标题头
Removes all items in the view. This will also remove all selections. The table dimensions stay the same.
void QTableWidget::clearContents () [slot]//这个清空所有内容不包括标题头
Removes all items not in the headers from the view. This will also remove all selections. The table dimensions stay the same.
[cpp]
view plaincopyprint?
void QTableWidget::removeColumn ( int column ) [slot]//这个是删除一列,而不是清空表格
Removes the column column and all its items from the table.
void QTableWidget::removeRow ( int row ) [slot]//这个是删除一行,不是清空一行
Removes the row row and all its items from the table.
相关文章推荐
- 清空Qtablewiget 表格的内容
- 清空Qtablewiget 表格的内容
- 清空Qtablewiget 表格的内容
- Qtablewiget 清空表格内容;
- easyui datagrid 表格内容清空
- jquery表格[删除,添加,清空内容]
- SQLite 清空表格内容,重置自增长为零
- 只保留表格表头,其他内容清空
- 解决表格没有内容不显示边框的代码
- 用POI在word07模板文件中创建表格,修改内容等操作
- 解决html表格中内容超出不强制换行和超出宽度自动隐藏并显示省略号
- javascript 表格内容排序 简单操作示例代码
- html 投骰子比输赢,并可以清空文本内容
- 文本框获得焦点清空文本内容
- 文本框获得焦点,并且同时清空文本框内原有的文字。 如果文本框内已经有用户输入的内容了,那么就不应该进行清除文本款内容这个动作
- jquery datatable调用.clear().draw()方法后不能清空表格数据
- linux 清空文件内容若干方法
- vim 命令基础学习(1)——清空文件内容,显示行号,跳转到指定行
- jquery 遍历表格,需要表格中每个td的内容
- StringBuffer内容清空效率比较