I have an array of items. An item is represented by a class that contains three string fields. I have a GUI with three line edits to display/edit the fields of an item. I also have a slider to access the items within the array.

I want to synchronize the items within the array with any changes made to the line edits. Is there a way to do that automatically, such that a change to the line edit updates the data? (And vice-versa?)