How can I make the selected row in a QML table view remain the same when changing the model
I am using a qml table view to display a set of values. On each row, there are buttons that allow the user to adjust the value.
My model is an array of qobjects. Every time the user does something to change a value, I am sending a signal to my controller class, it is creating a new model and giving that to the table view. Unfortunately, when you update the model, the selected row is set to -1. Is there some way to change that behavior?