[Qt-interest] addToJavaScriptWindowObject and javascript arguments object

Andrew Gorelik gorelik at andrewz.org
Mon Jul 27 23:45:54 CEST 2009


Hi Michael, 

> > So the question is this: what C++ class should I use as the argument
> > type in the object given to addToJavaScriptWindowObject() to match the
> > JavaScript arguments object?

> I'm not sure if the Arguments object can be converted directly to
> C++ (some objects get converted as a QVariantMap), but you can
> convert the arguments pseudo array to an actual array and pass it in
> as a QVariantList.

Thank you for your response., it was very helpful. I had hoped to be
able to use the existing javascript code as is, but the
converting-arguments-to-an-actualp-array workaround works great.

Andrew




More information about the Qt-interest-old mailing list