I just found out the issue. Implementing mimeTypes() was the solution (the
documentation for this function is quite obscure IMHO), but the
dragEnterEvent of the view was then calling flags() on the model with an
invalid index (col=row=-1, null pointer) which I did not properly handled
in flags() su
Dear all,
I cannot manage to enable dropping data into an Item View class.
Basically:
- The model is a custom QAbstractItemView subclass, having a tree
structure. Column 1 is editable
- The view is a standard QTreeView
I would like to drop data from another widget in the editable field (colum