On Wed, May 15, 2019 at 4:37 AM jlk <jlk2...@gmail.com> wrote:

> However, on MSVC 2017, I've now read about a bug (in the
> C++ standard requirements, I guess) that prevents qOverload from
> working. Could someone suggest a workaround for my case?
>

If you can't use qOverload or QOverload<...>::of(), then you have only two
other options. Static casting the signal to the exact method type, or
specifying the template parameter explicitly.
Either:
QObject::connect(process, static_cast<void (QProcess::*)(int,
QProcess::ExitStatus)>(&QProcess::finished), receiver, slot);
or
QObject::connect<void (QProcess::*)(int, QProcess::ExitStatus)>(process,
&QProcess::finished, receiver, slot);
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to