@raven-worx said in QTreeView/Model drop action - no expand sign ?:
Also did you emit the dataChanged() signal on the parent index?
I've just read the post. I forgot to correct it. This is what I edit:
bool testModel::dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) {
...
Q_EMIT dataChanged(itemFirst.index(),itemLast.index())
}
Hmmmm so I tried this, the parent is the object that is in function above.
Q_EMIT dataChanged(parent, parent)
Now this now "magically" works, I get extra ">" when I drop item on another item...
I also learned that I also need to call Q_EMIT layoutChanged({parent}/flag) to update view if I drop items on expanded parent...
Ok all good then, thanks! Weird issue o.o