Be carefull with the above code, your using a pointer without alocating memory, instead do:

Qt Code:
  1. QString itabtext = tableWidget->item(0,0)->text();
To copy to clipboard, switch view to plain text mode