[Qt-interest] How to detect drag drop on a QListWidget (Signal?)
Matthias Pospiech
matthias.pospiech at gmx.de
Fri Aug 6 12:45:55 CEST 2010
I could find out that drag and drop can be enabled using this code:
ui->listWidget_MacroCommands->setDragEnabled(true);
ui->listWidget_MacroCommands->setDragDropMode(QAbstractItemView::InternalMove);
However I can not find any signal which indicates that such a move has
happened.
All I want to know is which index moved to which different index.
I have looked at some examples, but all I can see is events, which dont
tell me the
indexes which has changed. And that I must derive a class which I really
do not want
to do.
Can somebody give me a hint where to learn how to use drag and drop the way
I want to use it - I only want to be able to rearrange elements in a
QListWidget.
Matthias
More information about the Qt-interest-old
mailing list