I have not read any reply to this message (help request): I am the only one who has this need?
I have writed about QTableWidget but this operation can be done also with other object: QTreeWidget, QListWidget, etc.
I think can be very interesting in a gui application....
Not everybody can reply to your message, it was extremely complex.Only those who have had the need to do so and have already done can do so.So until above creteria is met by one, you need to investigate yourself.
This property holds the drop action that will be used by default in QAbstractItemView::drag().
If the property is not set, the drop action is CopyAction when the supported actions support CopyAction.
This property was introduced in Qt 4.6.
Access functions:
| Qt::DropAction | defaultDropAction () const |
| void | setDefaultDropAction ( Qt::DropAction dropAction ) |
Hi Pritpal,Il 08/04/2013 9.07, Pritpal Bedi ha scritto:
2013-04-08 00:04 UTC-0800 Pritpal Bedi (bedipritpal at hotmail.com)(r201)* hbqt/qtgui/qth/QAbstractItemView.qth+ Added: DragDropMode dragDropMode () constvoid setDragDropMode ( DragDropMode behavior )For Qt 4.6 and above. Pointed out by Luigi.



I hope this can be useful for hbqt users.
Certainly.It is better to write a small demo app for this to be understood by a beginner.
Pritpal Bedi
+1Hi Karl.
I can confirm I have the same problem as Luigi using the QListWidget(). Even when dropping (trying to move) within the same list.
Please let me know if additional sample code is needed.
Karl