QTableWidgetItem * QTableWidget::itemAt ( const QPoint & point ) const
QTableWidgetItem * QTableWidget::itemAt ( int ax, int ay ) const
for both the functions the parameter is point (in table widget's coordinate system), this is not row & column. This is the reason for empty in the text().
Try using this
QTableWidgetItem * QTableWidget::item ( int row, int column ) const
Use the second method.
First method should also work if Qt::UserRole is changed to Qt:: DataRole





Reply With Quote

Bookmarks