You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your genius lib, great job, very powerful.
I'm trying to use your QJson library to parse content from D3 Api. I use QProperty to initialize my objects.
It worked fine with standard value as int, QString, QDate, but how can use QList?
// _pReply is a QNetworkReply coming from D3_API
QVariant res = parser.parse( _pReply->readAll(), &bOk );
D3_Career pCareer = new D3_Career();
QJson::QObjectHelper::qvariant2qobject( res.toMap(), pCareer );
Any ideas?
Regards,
Jérémie
The text was updated successfully, but these errors were encountered:
Hi again,
I resolve my issue by using QVariant instead of QList<D3_Heroe>. So it use your QVariant::Type test in qvariant2qobject correctly.
And in D3_Career, in WRITE function, I parse this QVariant, still using qvariant2qobject.
By curiosity, why qvariant2qobject function don't handle QVariant::UserType?
Hi Flavio,
Thanks for your genius lib, great job, very powerful.
I'm trying to use your QJson library to parse content from D3 Api. I use QProperty to initialize my objects.
It worked fine with standard value as int, QString, QDate, but how can use QList?
Example :
QJson from D3 Api :
My Class :
Using your
QJson::QObjectHelper
:Any ideas?
Regards,
Jérémie
The text was updated successfully, but these errors were encountered: