You only need the index inside the object if you need the value inside the object or if you need to ask the object later what index it has.

Access of an object at a given index can easily be done with just storing the object in an index accessible container, e.g. a list or vector.
You can use QSignalMapper to map each line edit's editingFinished() signal to a slot call with the index.

Cheers,
_