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

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Tue May 8 17:52:15 CEST 2018


Am 08.05.2018 um 08:36 schrieb Thiago Macieira:
> On segunda-feira, 7 de maio de 2018 21:30:33 PDT Christian Ehrlicher wrote:
>> 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!
> Use a typedef for your type.
If it would be that easy :)
qRegisterMetaType<Topic>(Helper::replyTopicTypeName<Topic>());
But I've now a solution that works correctly so all is fine.

Thx,
Christian



More information about the Interest mailing list