Does anyone know when QStandardItem objects/pointers from QStandardItemModel methods like item() and itemFromIndex() should no longer be considered valid? I mean, I’m assuming they will be gone if the rows/columns in question are removed, but can they also be invalidated on other events, like when data items are inserted or removed elsewhere in the model?
And how about the objects passed to insertRow() or similar. It looks like these will initially used directly (data is not copied), but for how long are they kept?
↧