MainWindow::MainWindow(
QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
QWidget *wgt =new QWidget();
QVBoxLayout *lout =new QVBoxLayout(wgt);
QLabel *studentNameLabel =new
QLabel("cellWidget",nullptr);
studentNameLabel->setAttribute(Qt::WA_TranslucentBackground);
lout->addWidget(studentNameLabel);
QLabel *studentMoberLabel =new QLabel("cellWidget",nullptr);
studentMoberLabel->setAttribute(Qt::WA_TranslucentBackground);
lout->addWidget(studentMoberLabel);
studentMoberLabel->setMinimumWidth(81);
wgt->setLayout(lout);
ui->tableWidget->setCellWidget(0,0,wgt);
}