Try using the method
QTableWidgetItem* item(int row, int column) const
Used as follows:
int row = 1; int col = 1; QTableWidgetItem* theItem = theTableWidget->item(row, col);
and extract the text using the QTableWidgetItem method
QString text () const
Used as follows:
QString theText = theItem->text();
source share