To get the text of your cell do :

Qt Code:
  1. QString str;
  2. str=m_ui->tableWidget->item(row,column)->text();
To copy to clipboard, switch view to plain text mode 

to prevent the cell form being editable use the function

QTableWidgetItem::setFlags ( Qt::ItemFlags flags )and the flag
Qt::ItemIsEditable