connecting signals and slots problem
does the signal function and slot function should have the same parameters?
http://puu.sh/jPpJb/41d5903fcf.png why i keep getting this errors?
Thanks in advance
The signature of a signal must match the signature of the receiving slot. (In fact a slot may have a shorter signature than the signal it receives because it can ignore extra arguments.) "
So not sure you can mix it the way it seems you try.
Also it seems you try to include the sender in the signal ?
you can get the sender in the slot using
[edit: fixed documentation link to use Qt 5 documentation SGaist]
You can't pass a parameter when setting up the connection and since your using Qt 5 you should try the new connect syntax, it helps avoid that mistake.
There also the possibility of using lambdas for such use case.