C++ (Qt) void setIcon ( const QIcon & icon )
C++ (Qt)int rows=10;int columns=10;QTableWidget *table=new QTableWidget( rows, columns); for(int i=0;i<rows;i++){for(int j=0;j<columns;j++){table->setItem(i,j,new QTableWidgetItem(QIcon("icon/test.png"),"");}}