hey there i have set up a QTableWidget called demands and is set up with a signal and slot of the type below

Qt Code:
  1. connect(demands, SIGNAL(itemChanged(QTableWidgetItem*)), this, SLOT(obtain_values(QTableWidgetItem*)));
To copy to clipboard, switch view to plain text mode 

but when i try to add a item to the table from a seperate slot that i have using a button - the program crashes. when i take the line above out it adds the item no problem, but i need that line to get the data from the table....is there any way to get around this so that i can get data from the table and add items outside the constructor?