[Development] Avoid overloading of 'error'
Matthew Woehlke
mwoehlke.floss at gmail.com
Thu Oct 29 20:28:55 CET 2015
On 2015-10-29 14:56, Sergio Martins wrote:
> On Wednesday, June 10, 2015 01:55:01 PM Matthew Woehlke wrote:
>> relating to the overloaded signals/slots problem in general:
>>
>> template<class... Args, class T, class R>
>> auto qOverload(R (T::*m)(Args...)) -> decltype(m)
>> { return m; }
>>
>> connect(&process, qOverload<QProcess::ProcessError>(&QProcess::error),
>> this, &MyClass::processError);
>
> Thanks for the tip, how about upstreaming qOverload ?
I haven't gotten around to it. If you want to prepare a patch, feel free
:-). I'd love to see it upstream.
--
Matthew
More information about the Development
mailing list