Was the "another widget" a headerview as well?
mimeTypes() just lists what types are produced by the model, it's not important for drops. You have to check whether drop actions are enabled over the place you want to drop on. The difference in behaviour between "two models" could be caused by a different implementation of the flags() method.Re: Drag and Drop problem
actually I've a new surprise for u all. On debugging I found that it stops @ the break point in the mimeType of my temp small model. and i doesn't in the other model I've been working with for a while. So, I'd really appreciate if any body told me what the heck on earth could make what's happening here make sense !!!!
AFAIR normally a model doesn't differenciate between a drop on the header and "outside any item", so if you want to actually make a drop on the header, you have to hack the view (remember that headers are not part of the model).
For instance, if you return ItemIsDropEnabled from flags() for an invalid index, you'll be able to perform a drop directly on the view (and not on any of its items). But this won't be a drop on the header itself - you'll be able to drop anywhere in the view. I thought you wanted to drop on the header explicitely.
I haven't missed them, I just thought they didn't carry any relevant information.sorry but i think u've missed those to comments which I've posted early.
Bookmarks