#include
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
QTableWidget tableWidget(3,3);
for(introw=0;row for (int col=0;col tableWidget.setItem(row,col,new QTableWidgetItem(QString::number(row*col)));
tableWidget.show();
return app.exec();
}