I have a question concerning Signal-Slots:
Lets say I have 2 classes CL_A, CL_B
class CL_A : public QObject
{
Q_OBJECT
private:
int a,b,c; // in reality I have more than 3 variables
// that need to be set
public:
void set_a ( int par_a);
void set_b ( int par_b); // in reality I have more than 3 setters
void set_c ( int par_c); // I also have getters and other methods
...
};
CL_B * cl_b = new CL_B();
From CL_B I want to use the setters of CL_A to set the variables a,b,c of class CL_A. In order to do that I set signal-slot-connections for each setter. Now my question is:
Is there a better way to do that instead of having lots of signal-slot-connections (one for each method)?