QTableWidget, dropping between the rows shall insert the item
Hi all,
I have an opposite problem to the one described by sergiomar73 in the thread "QtableWidget that don't accept drop item between rows?"
I'd like to INSERT the dragged row of the QTableWidget BETWEEN two other rows. The drag and drop works OK, the insertion is possible only between the rows, but item disappears instead of to be inserted.
Optimally, the gap after the moved item shall be closed ( according part of the rows shall be moved)
any idea how to to do this?
great thanks for any help
Re: QTableWidget, dropping between the rows shall insert the item
Hi,
I've found out that in the QTableView, the feature works correctly. The problem is only with the QTableWidget. Is this a bug or a feature ???
regards
Re: QTableWidget, dropping between the rows shall insert the item
I am having the same problem. It works fine in QListWidget, but in QTableWidget it drags content from row i, drops onto row j, overwriting the content in row j, and row i is now blank
Re: QTableWidget, dropping between the rows shall insert the item
I just posted about this at Stack Overflow too, just to see if there is something obvious I am missing:
http://stackoverflow.com/questions/2...n-qtablewidget
Re: QTableWidget, dropping between the rows shall insert the item
Someone at Stack Overflow answered. It's tricky, but doable:
http://stackoverflow.com/a/26311179/1886357
For a noob like me it is actually a beautiful example to work through.