Have you used MyButton instead of QPushButton?
Also have you used the two signals properly?

It is impossible not to
work, therefore you have done something wrong.