We all know that in Qt there are two syntaxes of signals and slots:
But also, as it is not necessary to interfere with beer with vodka, with the same success it is not necessary to mix two syntaxes within the framework of one project.
Of course, there are projects that write a lot of code and make a complete refactoring on changing the whole syntax is quite an overhead job, but if you, gradually completing the project, switch to a new syntax, try to update all the code places with the given one connection to a new syntax.
The fact is that for both cases (
SINGAL SLOT macros and syntax on pointers
) other contents of
are formed, which leads to the fact that mixed usage of connect and disconnect methods does not work as expected. And to be precise, the disconnect method will not work if
was called using macros, and
was called using pointers.