qt programming with signals/slots

I have several arrays of QWidgets as such:

1
2
3
QLineEdit *entries;
//retrieve size from file...
entries = new QLineEdit[size];


The problem is I don't know how to specify which entry is signaling slots. The first thing I thought of was to have just one function that every signal connects to and just have the signal pass the index of the array to the function, but I don't know how that would be done or if there is an alternative.

Q: How can I connect signals from an array of widgets to a function that knows exactly which widget interacted with?

Thanks for the help.
Here's more info on QLineEdits if that helps:
http://qt-project.org/doc/qt-4.8/QLineEdit.html

And more on connecting slots and signals:
http://doc.qt.nokia.com/4.7-snapshot/signalsandslots.html

They didn't help me much though.
Topic archived. No new replies allowed.