C++ (Qt)class MyClass : ...{ Q_OBJECT...private slots: void showTextFromCell(int row);...};...connect(tableWidget, SIGNAL(cellClicked(int, int)), SLOT(showTextFromCell(int)));...void MyClass::showTextFromCell(int row){ QString columnsText; for (int i = 0; i < tableWidget->columnCount(); ++i) columnsText += tableWidget->item(row, i)->text(); textEdit->setText(columnsText);}