QWidget *widget = new QWidget;
QHBoxLayout *layout = new QHBoxLayout;
QCheckBox *box = new QCheckBox;
layout->addWidget(box);
layout->setMargin(0);
layout->setAlignment(box,Qt::AlignCenter);
widget->setLayout(layout);
tblList->setCellWidget(0,0,widget);
Qt 表格中插入QCheckBox并居中
最新推荐文章于 2025-03-21 15:18:03 发布