16,817
社区成员




QApplication a(argc, argv);
Qt_test w;
QTableWidget * table = new QTableWidget(&w);
table->setRowCount(1);
table->setColumnCount(3);
table->setGeometry(QRect(30,30,340,140));
QPushButton * btn = new QPushButton("btn1");
table->setCellWidget(0,1,btn);
//
// table->removeRow(0);
// table->setRowCount(3);
table->setCellWidget(0,1,btn);
w.show();
return a.exec();