Qt Code:
  1. QTableWidget::setItem ( int row, int column, QTableWidgetItem * item )
To copy to clipboard, switch view to plain text mode 

Have also a look to the detailed description of the documentation of QTableWidget.