我这样做:
QLabel *qlab = new QLabel;
ui->tableWidget->setColumnCount(3);
ui->tableWidget->setRowCount(1);
ui->tableWidget->setCellWidget(0, 0, qlab);
但是当我单击单元格并且我无法编写文本时没有任何反应。
我这样做:
QLabel *qlab = new QLabel;
ui->tableWidget->setColumnCount(3);
ui->tableWidget->setRowCount(1);
ui->tableWidget->setCellWidget(0, 0, qlab);
但是当我单击单元格并且我无法编写文本时没有任何反应。