Re: Drag & Drop using QTableWidget
Quote:
Originally Posted by
para
I am having the same problem, trying to drag&drop from one table to another.
Does this work for you?
Code:
#include <QtGui>
{
tableWidget->setDragEnabled(true);
tableWidget->setAcceptDrops(true);
tableWidget->setDropIndicatorShown(true);
return tableWidget;
}
int main(int argc, char* argv[])
{
splitter.addWidget(createTableWidget(&splitter));
splitter.addWidget(createTableWidget(&splitter));
splitter.show();
return a.exec();
}
Re: Drag & Drop using QTableWidget
Quote:
Originally Posted by
jpn
Does this work for you?
Yeah that worked, thanks a lot. I must have missed something.
:D