Hi,

I need to connect a changed signal of a QSpinBox, QDoubleSpinBox, and a QLineEdit member of a QWidget array with a on_Change slot, but I need to transmit also the index of a QWidegt.
This code work fine (this for QSpinBox):

Qt Code:
  1. connect(widget[index], SIGNAL(valueChanged(const QString &)), this, SLOT(on_Changed()));
To copy to clipboard, switch view to plain text mode 

but I want to send also the index, like this:

Qt Code:
  1. connect(widget[index], SIGNAL(valueChanged(const QString &)), this, SLOT(on_Changed(const int &myindex)));
To copy to clipboard, switch view to plain text mode 

thanks