Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Signals in visual is not showing up
I work with Qt5.2.1 on VS. I have two classes.
class classA: public QObject
class classB: public QObject
pointA = new classA();
//here I want to add signal-slot connection,
//but I can't because Visual is not finding
// connect(pointA, SIGNAL(doWorkRequest()),
// this, SLOT(doWork()));
I have tried to write it on my own, but slot doWork() is not working.
If anyone have an idea where problem is?
It's not because your IDE doesn't find something that it's not there.
Once connected (also look at the console output to see if you have an error message related to that), do you ever emit doWorkRequest ?
Yes, I emit that signal from other function from classA, here I only omitted it.
No, I don''t have any error messages related to it.
So, how do you know it's not working ?
Ok, I don't know why, but now it works (I have just close visual and open it again). After that connect() works, but I should write it on my own (program doesn't suggest any existing signal from beyond the classB).
EDIT: I put the breakpoint in slot that should be invoked, and earlier it was not invoked.
Zarkon last edited by
Maybe you should make it a public slot instead of a private slot.