Hi,

Is there a built-in functionality to move around (reorder) rows with drag-and-drop in QTableWidget.
I used setDragDropMode, but that didn't gave me exactly reordering of the rows, but moving.

---
QTableWidget *tableWidget = new QTableWidget(12, 3, this);

for(int row=0; row < tableWidget->rowCount(); ++row)
{
for(int column=0; column < tableWidget->columnCount(); ++column)
{
QTableWidgetItem *newItem = new QTableWidgetItem(tr("%1").arg(
(row+1)*(column+1)));
tableWidget->setItem(row, column, newItem);
}
}
tableWidget->setDragDropOverwriteMode(true);
tableWidget->setDragEnabled(true);
tableWidget->setDragDropMode(QAbstractItemView::InternalMove);
tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows);
---