TableWidget creates new row after item drop from listWidget
Solved
General and Desktop
-
Hi guys, i have a listWidget that contains some items that i drag and drop in a table widget. The problem is, if i drop an item in the space out of the table it creates a new row with the item that i've dropped. How can i prevent this behaviour ? There is something like : ui->tableWidget->setMaximumRow/Col ?
thanks. -
Hi,
I would say that you have to reimplement the dragEnter and dragMove event and refuse the event if not on top of a cell.