Hi,
I’m trying to make a ui for a tree data structure, using subclassed QStandardItemModel and QStandardItem objects.
It seems to manipulate the rows of the model, one can call insertRows() on either the model or the parent item itself - however, when calling it on the model, you also need to call beginInsertRows() and endInsertRows(), whereas on the item, you don’t? Also it seems like calling it directly on the items does not properly update the connected view widget. I’m using PySide2, though I hope that doesn’t matter.
I’m very confused as to why there are two entrypoints which apparently do the same thing, but have different requirements and outcomes.
Any help is greatly appreciated,
Thanks