[Interest] QProcess overload slot connection

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Wed Mar 13 20:10:13 CET 2019


Am 13.03.2019 um 20:02 schrieb Jason H:
> This does not give an error, but is also wrong, I think:
> connect(process, QOverload<int>::of(&QProcess::finished), &loop, &QEventLoop::quit);
>
>
> QEventLoop::quit slot does not take any parameters
What's wrong with this? The signal can have more parameters than the 
signal - this was always the case.
But you should use the finished(int, QProcess::ExitCode) overload - the 
other one is deprecated and will create a compiler warning in Qt5.13 and 
above.

Christian


More information about the Interest mailing list