C++ (Qt)void MyTableWidget::dropEvent(QDropEvent *event){ QString oldText = itemAt(event->pos())->text(); QTableWidget::dropEvent(event); ...}