Qtablewiget 清空表格内容;
2016-03-25 00:20
429 查看
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.
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.
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.
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.
相关文章推荐
- Qt 的内部进程通信机制
- qt 获取windows 的消息(通过MFC的DLL的透明窗体转发消息)good
- XP下vs2008-qt4.8.6编译Qgis:QwtPolar编译
- XP下vs2008-qt4.8.6编译Qgis:qwt编译
- Qt SVG Viewer Example 看看看~
- Qt Drag and Drop Puzzle Example 看看看~
- Qt Graphics View Framework 图形视图框架
- Qt,从控件的一个综合性例子开始
- QT 鼠标事件 键盘事件 的属性
- 第一个Qt程序 Helloworld
- Qt之模型/视图(自定义按钮)
- Qt之模型/视图(自定义按钮)
- 解决QT使用mysql编译时不能连接数据库的问题
- 解决qt调试时Unknown debugger type "No Engine"(转载)
- 基于qt的五子棋 人人对战 人机对战 程序与程序对战
- Qt之QTableView显示富文本
- Qt之QTableView显示富文本
- QT 让生成文件更干净
- QT FTP上传,下载文件
- ubuntu下qt5提示can not find -lGL