Hi Thiago,

On 4/8/12 5:16 AM, Thiago Macieira wrote:
>>   QVariant result = ...;     // Just received from thread
>>   QMetaMethod method = ...;  // Pass the result to this method
>>   method.invoke(receiver, QGenericArgument(result.typeName(),
>> result.value<void *>()));
> 
> You're not supposed to use QGenericArgument directly. Use Q_ARG.

Thanks for your clarifications. Is there a way to achieve the desired
behavior with Q_ARG? The main point is that I don't know the actual type
of the result, but the QVariant does (although not via templates,
apparently).

Regards,
Jonas

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to