引用第4楼duduqq于2008-11-01 15:50发表的 :
我这样做干嘛不成的呢,不知是什么原来了,你能给多点代码吗
#include <QtGui>
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QTableWidget* table = new QTableWidget(1,1);
QCheckBox* check = new QCheckBox("test");
table->setCellWidget(0,0,check);
table->show();
return a.exec();
}