16,239
社区成员
发帖
与我相关
我的任务
分享
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
tb=new QTableWidget(this);
tb->setRowCount(2);
tb->setColumnCount(2);
tb->setFixedSize(300,300);
layout()->addWidget(tb);
QCheckBox* ck=new QCheckBox();
ck->setText("hello");
tb->setCellWidget(0,0,ck);
}