Rearrange the QListWidget items after drag drop action
Hi all,
i have QListWidget with items.currently i have implemented drag&drop of with in widget.it is working fine.but what i want is when i do drag&drop the one item to another place within widget the listwidget is not rearraging its items.
can any one help me out of this..
below code i have written for drag drop of QListWidget..
listWidget->setSelectionMode(QAbstractItemView::SingleSelection);
listWidget->setDragEnabled(true);
listWidget->viewport()->setAcceptDrops(true);
listWidget->setDropIndicatorShown(true);
listWidget->setDragDropMode(QAbstractItemView::InternalMove);
regards,
venkat
Re: Rearrange the QListWidget items after drag drop action
can any body please help me out of this..
regards,
venkat
Re: Rearrange the QListWidget items after drag drop action
Hi Venkatesh,
I have run in to some issues implementing internal drag and drop in a QListView,
[URL="http://discussion.forum.nokia.com/forum/showthread.php?222150-Internal-Drag-and-Drop-in-list-view-sometimes-deletes-items"]my post is here[/URL]
I was wondering if you sorted out your issue , and might be able to shed some light on what I am doing wrong ?
cheers
Guus Davidson