Re: [Interest] QtWebKit bridge wont convert JS Arrays to QVariant

2013-10-16 Thread Allan Sandfeld Jensen
On Wednesday 16 October 2013, equals...@gmx.com wrote: > > Perhaps my assumption that Qt would convert the array to QVariant is > wrong() - that was my understanding from the docs - I'm not using any > JS types other than arrays/objects/doubles/strings/bool. Qt versions here > are 5.1.0 and 5.1.1

[Interest] QtWebKit bridge wont convert JS Arrays to QVariant

2013-10-16 Thread equalsraf
Hi, I'm exposing an object and its methods to the javascript engine inside QtWebkit using QWebFrame::addToJavaScriptWindowObject(). Since I wanted to be able to pass most standard Javascript objects to a method I declared its argument as a QVariant. But this does not seem to work for arrays, inste