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):
connect(widget
[index
],
SIGNAL(valueChanged
(const QString &)),
this,
SLOT(on_Changed
()));
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:
connect(widget
[index
],
SIGNAL(valueChanged
(const QString &)),
this,
SLOT(on_Changed
(const int &myindex
)));
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
Bookmarks