Quote Originally Posted by impeteperry View Post
I haven't gotten the logic behind the "new" yet since I have designated the "cell", but I shall.
new is an operator that creates class instance on the heap and returns a pointer to it.

Qt Code:
  1. myTable->setItem( 3, 4, new QTableWidgetItem( "somthing" ) );
To copy to clipboard, switch view to plain text mode 
is equivalent of:
Qt Code:
  1. QTableWidgetItem *item = new QTableWidgetItem( "somthing" );
  2. myTable->setItem( 3, 4, item );
To copy to clipboard, switch view to plain text mode 

It the item already exists, you can access it like this:
Qt Code:
  1. myWidget->item( 3, 4 )->setText( "something" );
To copy to clipboard, switch view to plain text mode