Unable to use signal slot
Solved
General and Desktop
-
Hi,
I have two classes. Both have Q_OBJECT macro. I want to use signal slot between them but there is always an error regarding moc.
error: undefined reference to `ClassName::SendDataToGUIAA(QString)'
-
Best you show the code sections with definitions and implementations of signals and slots.
What compiler are you using? -
As @koahnig said, show us the code.
-
Hi,
It is solved . I forgot to use explicit keyword.
Regards,
Avtansh