On 4/8/12 3:29 PM, Thiago Macieira wrote:
> On domingo, 8 de abril de 2012 13.00.28, Jonas Gehring wrote:
>> 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
On domingo, 8 de abril de 2012 13.00.28, Jonas Gehring wrote:
> 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
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()));
>
> You're not supposed to use
On domingo, 8 de abril de 2012 04.24.01, Jonas Gehring wrote:
> Hi there,
>
> Does anybody know a way to access the raw data inside a QVariant?
variant.data_ptr();
> Just for clarification: I know about Q_DECLARE_METATYPE,
> qRegisterMetaType etc. I'm currently passing user-defined type
>
Hi there,
Does anybody know a way to access the raw data inside a QVariant?
Just for clarification: I know about Q_DECLARE_METATYPE,
qRegisterMetaType etc. I'm currently passing user-defined type
that are boxed inside a QVariant across different threads, and
at some point I'm invoking a slot init