[Interest] QMetaMethod::invoke / Q_ARG with a temporary

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Tue May 8 06:30:33 CEST 2018


Am 07.05.2018 um 21:40 schrieb Thiago Macieira:
> On Monday, 7 May 2018 11:24:55 PDT Christian Ehrlicher wrote:
>> Hi,
>>
>> today I discovered that Q_QArgument does not handle a temporary
>> (boolean) value as I would have expected it.
>> I'm invoking the method similar to this:
>>
>> QArgument<bool> arg3("bool", !inProgress);
> QArgument is not a documented class. Remove this line. You must only use the
> Q_ARG macro.
I know that I should Q_ARG but I have problems using Q_ARG with a 
typedef/templated parameter therefore I need to use QArgument for at 
least this specific parameter and simply used it for all without 
thinking about it. Thx for the pointer!


Thx,
Christian





More information about the Interest mailing list