I'm having a button on a widget (homeWidget). The homeWidget is in a stackedwidget which is set as central widget for a main window.
Now I need to detect a button click signal from homeWidget and trigger an event in CWorker(a subclass of qobject, which I' running as a thread in mainwindow).

So here I have a clicked signal from homeWidget to centralwidget, on this signal, I'm emitting another signal in centralWidget which is received in mainwindow and connected to a slot in CWorker. Here mainwindow acts as a moderator.

After doing this, I'm trying to check the clicked signal in CWorker slot using a debug message. I'm not getting debug message in the output. I'm unable to find out why the message isn't getting printed. Please help me solve the issue. Thank you.