Object::connect: No such signal RollsRoyceTab::signal_aValueChange(int aValue)
In the following class:
class RollsRoyceTab : public QWidget
{
Q_OBJECT
public:
RollsRoyceTab(QWidget *parent = 0);
public slots:
void aValueChange(int);
void rrValuesHolder(int aValue, int bValue, int cValue);
signals:
void signal_aValueChange(int aValue);
private:
int aValue, bValue, cValue;
};
And somewhere the connect, like:
connect(this,SIGNAL(signal_aValueChange(int aValue)),
this,SLOT(rrValuesHolder(int aValue, int bValue, int cValue)));
These are the actual implementations:
void RollsRoyceTab::aValueChange(int aValue)
{
...
emit signal_aValueChange(aValue);
}
void RollsRoyceTab::rrValuesHolder(int aValue, int bValue, int cValue)
{
qDebug() << aValue;
}
What is the poper way to write the connect?
connect(... this,SLOT(rrValuesHolder(int aValue, int bValue, int cValue)));
or need write only one value SLOT(rrValuesHolder(int aValue))
?