Here is the code. ui.tableWidget is a pointer to a tableWidget and I've successfully added items to it. But the following doesn't work

Qt Code:
  1. disconnect(ui.tableWidget,SIGNAL(activated(QModelIndex&)));
  2. connect(ui.tableWidget,SIGNAL(activated(QModelIndex&)),this,SLOT(tableKeyPressSLOT(QModelIndex&)));
To copy to clipboard, switch view to plain text mode 

I get

Object::disconnect: No such signal QTableWidget::activated(QModelIndex&)
Object::disconnect: (sender name: 'MainWindow')
Object::disconnect: (receiver name: 'tableWidget')
Object::connect: No such signal QTableWidget::activated(QModelIndex&)
Object::connect: (sender name: 'tableWidget')
Object::connect: (receiver name: 'MainWindow')

If I read the manual correctly, activated is a signal in the QTableWidget class.