GrahamLabdon
26th May 2011, 11:59
Hello
I have used Qt Designer to make a dialog containing a QTableWidget.
I have set the following - so that I can drag and drop rows within the table
tableWidget->setAcceptDrops(true);
tableWidget->setDragEnabled(true);
tableWidget->setDefaultDropAction(Qt::MoveAction);
tableWidget->setSelectionMode(QAbstractItemView::NoSelection);
tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows );
However I cannot drag rows within the table
What have I missed
TIA
Graham
I have used Qt Designer to make a dialog containing a QTableWidget.
I have set the following - so that I can drag and drop rows within the table
tableWidget->setAcceptDrops(true);
tableWidget->setDragEnabled(true);
tableWidget->setDefaultDropAction(Qt::MoveAction);
tableWidget->setSelectionMode(QAbstractItemView::NoSelection);
tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows );
However I cannot drag rows within the table
What have I missed
TIA
Graham