QListView: Drag item disappears
-
The correct reparenting of the layout and the view is taken care of automatically by the respective calls to setLayout and addWidget. In other words, I believe the code above is correct.
-
I tried with 4.8.5 and there the "problem" is the same.
You may also try to run the puzzle example in
qt-everywhere-opensource-src-4.8.5/examples/itemviews/puzzle
When the jigsaw piece reaches the border of the view it disappears. During the entire drag, the drag cursor looks strange with an empty dotted rect underneath the cursor.
Is this really expected behavior?
-
I can see that this post apparently draws very little attention.
I would still be very happy if somebody can tell me if the behavior that I report above for the puzzle example is intended.
-
Hi and welcome to devnet,
I just tested it with Qt 5 and it's still the same behavior. Whether intended or not, I don't know, but since there's an open bug report, i would say no
-
Yes it is a bug. And it is unresolved :(
-
Thanks for the replies.
In other words:
If you want a full-blown icon mode ListView and proper DnD support, you basically have to implement the whole thing yourself:
startDrag() with custom pixmaps for QDrag and the usual methods for the relevant model.
Is that the correct path and is it doable?
-
Bug fix is on its way
-
You have no idea have happy you just made me. Thanks a bunch!
Will you drop a note when it's there? Will it be Qt 5 only?
-
Sure I will, you can also watch the bug report to see when it's done.
No, I'll try to fix it for both. Qt 5 will need some more work.
-
Great - thanks!
-
Hi,
The bug has been fixed for 4.8.6 and 5.2.0
-
Great - and thanks!
Any idea when 4.8.6 will be released?
-
You're welcome !
Sorry I don't know