frame
= new QFrame(this, Qt
::Widget);
tableWidget
->setStyleSheet
(QString::fromUtf8("background-color: rgb(170, 255, 127);"));
frame->setGeometry(300, 250, 250, 200);
tableWidget->resize(200, 150);
tableWidget->verticalHeader()->hide();
tableWidget->horizontalHeader()->hide();
tableWidget->setItem(row, column, newItem);
tableWidget->setVisible(true);
frame->show();
frame = new QFrame(this, Qt::Widget);
tableWidget = new QTableWidget(row, column, frame);
tableWidget->setStyleSheet(QString::fromUtf8("background-color: rgb(170, 255, 127);"));
frame->setGeometry(300, 250, 250, 200);
tableWidget->resize(200, 150);
tableWidget->verticalHeader()->hide();
tableWidget->horizontalHeader()->hide();
QTableWidgetItem *newItem = new QTableWidgetItem(tr("%1").arg((row+1)*(column+1)));
tableWidget->setItem(row, column, newItem);
tableWidget->setVisible(true);
frame->show();
To copy to clipboard, switch view to plain text mode
Bookmarks