Model update not shown after pop of StackView
-
I have a QML view with a StackView in it.
when i initially load a ListView with a model of my own C++ model (subclassed from QAbstractListModel)
it loads fine and shows everything.when i push another view in the StackView with a 'settings' QML that can clear the model, the model emits a dataChanged, but when i pop back to the ListView the changed (now empty) model is not updated in the View.
Only if i go back (pop) one more in the StackView and re-load the ListView it is properly reflected by showing an empty ListView
Is this expected behaviour of the StackView to not update the view on pop ?
Do i need to force a refresh (besides emitting the dataChanged signal ) ?