Hi All,
In my application I have a reimplemented QListWidget and constructor looks something like this
Qt Code:
setAcceptDrops(true); setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);To copy to clipboard, switch view to plain text mode
In this widget user can selected multiple items and then drag them into another widget which reads info of all the items that are being dropped. QListWidget is behaving strange.
Let us assume that there are 20 items in the widget. Let us call them Item1, Item2....Item20.
Here are the steps that are performed.
STEP 1: User Selects multiple items using mouse (Press, drag to select and then Release). Around 10 items are selected. Lets say Item1 to Item10 are selected. (Image1)
STEP 2: User presses (not click) the mouse on the Item10 in order to drag all the selected items. Only Item10 is selected and only Item10 can be dragged. This is not the desired behavior, therefore user releases the mouse button. (Image2)
STEP 3: Now, user presses the mouse on Item1. This time all the items that were selected in STEP1 (item1 to item 10) are selected. Dragging items happens as accepted and the items are dropped at the drop site perfectly. (Image3)
Any ideas on why is this happening ?
Thanks a lot.
Bookmarks