Closed GoogleCodeExporter closed 8 years ago
After looking deeper, it looks like the culprit is QScriptValue::toVariant().
It does
not support script values that are plain Objects ( var val = new Object;). It
tries
to convert them to a primitive value by calling Object.toString(). See
QScriptEnginePrivate::toPrimitive_helper() for details.
I think this is a bit flawed. QScriptValue should detect if this is a plain
object
and convert them to QVariantMap before trying to treat it as a primitive.
Original comment by nhasan%n...@gtempaccount.com
on 7 Apr 2009 at 9:40
This isn't a bug tracker for all things QtScript, but for the QtScript Qt
bindings.
http://doc.trolltech.com/4.5/bughowto.html
Original comment by ian.mon...@gmail.com
on 8 Apr 2009 at 2:06
Ian,
Initially I thought this could be binding related. Upon further research, I
realized
that this is a QtScript issue and offtopic here. I just forgot to add that line
in my
last comment :)
Original comment by nhasan%n...@gtempaccount.com
on 8 Apr 2009 at 1:18
Now that I am thinking more clearly, this couldn't have been a binding related
issue
in the first place. I am not even sure now if this is a Qt bug since it seems
this
behavior is documented.
Sorry for the noise. I guess I had one of those confused moments.
Original comment by nhasan%n...@gtempaccount.com
on 8 Apr 2009 at 1:45
There is already an entry in the task tracker for this:
http://www.qtsoftware.com/developer/task-tracker/index_html?method=entry&id=2432
95
Original comment by nhasan%n...@gtempaccount.com
on 14 Apr 2009 at 1:21
http://bugreports.qt.nokia.com/browse/QTBUG-3511
Original comment by kentm...@gmail.com
on 11 Nov 2010 at 9:54
Original issue reported on code.google.com by
nhasan%n...@gtempaccount.com
on 7 Apr 2009 at 5:14