Re: Signal slot don't work
That looks good.
I assume you have verified that both classes inherit QObject and have the Q_OBJECT macro in their class declaration.
And I assume you have checked that the slot that emits the signal is called.
But have you also checked the result of the connect()?
Cheers,
_
Re: Signal slot don't work
I have correct inheritance of QObject, Q_OBJECT macro as well.The slot is called, but i don't know how to check the connection?
Re: Signal slot don't work
The result or result type of a function in C++ is the string directly left of the function name in the documentation of a function.
For QObject::connect() that would be QMetaObject::Connection, a value that can be treated like a bool.
Cheers,
_
Re: Signal slot don't work
In the moment of initialisation it returns false.
Re: Signal slot don't work
Then you should have also gotten a warning on the application's output.
That usually contains information what is going wrong.
If you are using Qt5 you could also try the function pointer based connect and see if you get compile errors.
Cheers,
_