nclude "widget.h" #include "ui_widget.h" #include #include #include #include Widget::Widget(QWidget *parent) : QWidget(parent), ui(new Ui::Widget) { ui->setupUi(this); /*这是ui文件中没有放qtablewidget控件时在里面插入QCkeckBox.