清空Qtablewiget 表格的内容
2013-10-27 22:44
309 查看
今天用到了Qtablewiget 清空表格内容;
其中:
[cpp] view
plaincopy
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
plaincopy
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.
其中:
[cpp] view
plaincopy
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
plaincopy
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 清空表格内容,重置自增长为零
- remove() 删除节点 | detach() 删除节点 | empty() 清空节点的内容 | clone() 复制节点
- MFC用SetwindowText()清空/更改Edit控件内容无效
- 文件操作(判断状态、删除、新建、复制、清空文件内容、获取文件长度)
- linux几种快速清空文件内容的方法
- ExtJs CheckboxSelectionModel 全选操作后 清空表格头的checkBox
- 点击(button 或者a都行)清空文本框内的内容
- 判断表格是否有相同内容 核心代码
- 搜索栏有内容搜索商品,清空UITextField返回搜索历史
- linux 清空文件内容
- linux中快速清空文件内容的几种方法
- 通过js去对表格的列,根据其内容进行排序(升序或者降序)
- jquery实现自动添加table表格及内容