Use QPersistentModelIndex to store indices in ComponentCacheProxyModel
QModelIndex becomes invalid if anything in the model it comes from changes. This can lead to crashes if the underlying item has been removed.
QModelIndex becomes invalid if anything in the model it comes from changes. This can lead to crashes if the underlying item has been removed.