QT4.3.2: Drag&Drop in Model View architecture problem
hi,
i have the following problem:
i have built a qt model/view architecure with drag&drop.
for that i have overwritten the according methods:
supportedDragAction
mimeTypes
mimeData
and....
dropMimeData
i have my own QMimeData inherited class, because i want to transfer a non-standard object.
so far so good, but now my problem:
while dragging (moving the selected data) over the rows in my (table)views i want individually check for each row i am over,
if a drop is accaptable or not.
if a drop is acceptable depends on data i am currently over AND the actual dragged data....
how can i do that?
till now i only got the data if i do the drop operation. (dropMimeData), but i need to check if drop is accaptable over every
data member in the views without dropping....
Have a nice day,
Marco
Re: QT4.3.2: Drag&Drop in Model View architecture problem
Quote:
Originally Posted by
nando
i have my own QMimeData inherited class, because i want to transfer a non-standard object.
You don't have to inherit QMimeData for that. Use QMimeData::setData() instead.
Quote:
if a drop is accaptable or not.
if a drop is acceptable depends on data i am currently over AND the actual dragged data....
how can i do that?
Unfortunately you can't. I submited a suggestion report to Trolltech about it over a year ago, but it's still pending and being pushed to later releases.
http://trolltech.com/developer/task-...6&method=entry