Hi,
Your problem is like this thread http://www.qtcentre.org/threads/5647...ng-error/page2
I have created a sample code from above link (signal and slot using QmainWindow and QDialog).
You can check that and I hope get idea how to solve your problem.

Best regards,

Toto