Hi, i have an irritating problem id like some help with if possible.
QStandardItemModel behaves strangely when trying to disable drag and drop for the root item of a model. When disabling drag and drop for the invisibleRootItem() of the model all drop capability is removed from the rest of the tree as well, what i am wondering is whether this is the intended behavior or if i have found a bug (or perhaps i made a mistake somewhere, probably the most likely answer).
Here is the source for an example i put together to show the problem, the top tree view has the root items drag and drop unchanged and the bottom tree view has the root item with Qt::NoItemFlags set. The child of the first items in both views has drag and drop set, the parent items has only enabled and selectable set.
DnDTest.zip
Any ideas, any at all, will be happily received as i am currently going nuts over this. No matter what i try i cant get this dang model to work as _I_ expect it to, that is to enable drop on the children even if the root item has drop disabled.
Thank you for any help... really... any help at all.![]()
Bookmarks