[SOLVED] Drop into a QDeclarativeView doesn't work
I want to be able to drag data on top of my QDeclarativeView and when it's dropped make some things happen in the QML.
I set setAcceptDrops(true) on my QDeclarativeView but still when trying to drag I get the no drop mouse cursor.
Could anyone please help out with some basic code for this behavior? Or at least point me to the right direction?
The qmlviewer application implements drag-and-drop for the view; if you'd like to refer to the source it is implemented in tools/qml/qmlruntime.cpp.
Thank you. I'll check that out.
UPDATE: checked it out, and it sure does work. Thanks for the tip.