Re: [Interest] Access QVariant's raw data

2012-04-08 Thread Jonas Gehring
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

Re: [Interest] Access QVariant's raw data

2012-04-08 Thread Thiago Macieira
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

Re: [Interest] Access QVariant's raw data

2012-04-08 Thread Jonas Gehring
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

Re: [Interest] Access QVariant's raw data

2012-04-07 Thread Thiago Macieira
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 >

[Interest] Access QVariant's raw data

2012-04-07 Thread Jonas Gehring
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