[Qt-jambi-interest] Help with Drag and Drop in QTreeView
朱欢
hotaru5423 at gmail.com
Wed Aug 27 17:37:24 CEST 2008
I have set the QTreeView as follows:
ui.treeView.setDragEnabled(true);
ui.treeView.viewport().setAcceptDrops(true);
ui.treeView.setDropIndicatorShown(true);
ui.treeView.setDragDropMode(QAbstractItemView.DragDropMode.InternalMove);
Then what else need to be done with the QTreeModel, which is used as the
tree model???
Can you tell me some details? An example will be better. I just want to
implement the item's moving from one parent item to another item.
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-jambi-interest/attachments/20080827/8b1dbbf5/attachment.html
More information about the Qt-jambi-interest
mailing list