Hi,
i want to build a pointer to a Qt Slot:
union {
void (*set_slot)(unsigned long value);
void (*refresh_slot)(void);
} the_slot;
The slot definition is:
void set_pwm(unsigned long new_pwm);
I try to do something like this:
the_slot.set_slot = set_pwm;
But the compiler says that the signature does not match:
error: argument of type
void (DriverBoard::)(long unsigned int)' does not match
void (*)(long unsigned int)'
hint: the slot is in class DriverBoard
Any idea where my error is?
And if someone knows - is it possible to do something like that with signals also?
Thanks! Simon