资源简介

QTableWidget表头添加复选框实现全选功能。有点投机取巧,但是功能是实现了。实现很简单。

资源截图

代码片段和文件信息

#include “tablewidgetheadercheckbox.h“
#include 

int main(int argc char *argv[])
{
QApplication a(argc argv);
TableWidgetHeaderCheckBox w;
w.show();
return a.exec();
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-04-08 14:09  TableWidgetHeaderCheckBox\
     目录           0  2017-04-01 08:38  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\
     文件    23527424  2017-04-08 14:09  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox.sdf
     文件        1021  2017-03-31 16:44  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox.sln
     文件       19968  2017-04-08 14:09  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox.v12.suo
     目录           0  2017-03-31 17:00  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\Debug\
     文件      228146  2017-03-31 16:57  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\Debug\main.obj
     文件      232296  2017-03-31 16:57  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\Debug\moc_tablewidgetheadercheckbox.obj
     文件        4918  2017-03-31 16:45  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\Debug\qrc_tablewidgetheadercheckbox.obj
     目录           0  2017-03-31 17:00  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\Debug\TableWid.B12702AD.tlog\
     文件        5134  2017-03-31 17:00  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\Debug\TableWid.B12702AD.tlog\cl.command.1.tlog
     文件       81180  2017-03-31 17:00  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\Debug\TableWid.B12702AD.tlog\CL.read.1.tlog
     文件        3050  2017-03-31 17:00  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\Debug\TableWid.B12702AD.tlog\CL.write.1.tlog
     文件        2410  2017-03-31 16:57  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\Debug\TableWid.B12702AD.tlog\custombuild.command.1.tlog
     文件         708  2017-03-31 16:57  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\Debug\TableWid.B12702AD.tlog\custombuild.read.1.tlog
     文件        1214  2017-03-31 16:57  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\Debug\TableWid.B12702AD.tlog\custombuild.write.1.tlog
     文件        2308  2017-03-31 17:00  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\Debug\TableWid.B12702AD.tlog\link.command.1.tlog
     文件        4180  2017-03-31 17:00  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\Debug\TableWid.B12702AD.tlog\link.read.1.tlog
     文件        1210  2017-03-31 17:00  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\Debug\TableWid.B12702AD.tlog\link.write.1.tlog
     文件         167  2017-03-31 17:00  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\Debug\TableWid.B12702AD.tlog\TableWidgetHeaderCheckBox.lastbuildstate
     文件        2491  2017-03-31 17:00  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\Debug\TableWidgetHeaderCheckBox.log
     文件      297787  2017-03-31 17:00  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\Debug\tablewidgetheadercheckbox.obj
     文件     1429504  2017-03-31 17:00  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\Debug\vc120.pdb
     目录           0  2017-03-31 16:45  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\GeneratedFiles\
     目录           0  2017-03-31 16:45  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\GeneratedFiles\Debug\
     文件        4177  2017-03-31 16:57  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\GeneratedFiles\Debug\moc_tablewidgetheadercheckbox.cpp
     文件        1504  2017-03-31 17:01  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\GeneratedFiles\qrc_tablewidgetheadercheckbox.cpp
     目录           0  2017-03-31 17:01  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\GeneratedFiles\Release\
     文件        4559  2017-04-01 08:33  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\GeneratedFiles\Release\moc_tablewidgetheadercheckbox.cpp
     文件        2243  2017-03-31 17:01  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\GeneratedFiles\ui_tablewidgetheadercheckbox.h
     文件         209  2017-03-31 16:44  TableWidgetHeaderCheckBox\TableWidgetHeaderCheckBox\main.cpp
............此处省略32个文件信息

评论

共有 条评论