Re: [Interest] Why QString and not std::string?

2012-06-15 Thread Jonas Gehring
On 6/15/12 10:18 AM, Konstantin Tokarev wrote: > > > 15.06.2012, 17:50, "Giuseppe D'Angelo" : >> On 15 June 2012 14:35, Sven Anderson wrote: >> >>> On 15.06.2012 14:58, Thiago Macieira wrote: Any one care to give me the Standard Library equivalent of: QString::number(x) >

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 met

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

[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