I do this like that :
QLabel *qlab = new QLabel;
ui->tableWidget->setColumnCount(3);
ui->tableWidget->setRowCount(1);
ui->tableWidget->setCellWidget(0, 0, qlab);
but nothing happen when i click on cell and i can't write text.
I do this like that :
QLabel *qlab = new QLabel;
ui->tableWidget->setColumnCount(3);
ui->tableWidget->setRowCount(1);
ui->tableWidget->setCellWidget(0, 0, qlab);
but nothing happen when i click on cell and i can't write text.
Copyright © 2021 Jogjafile Inc.
You need to make the item editable as follows: