[Qt-interest] Fwd: returning a QObject to javascript in WebKit

Paul Dixon lordelph at gmail.com
Wed Jun 3 09:19:03 CEST 2009


> I have already done something like that like this :
> Qt documentation about evaluateJavaScript..
> Created a js string and passed it to the evaluateJavaScript function, also
> declared a class
> e.g. (CustomClass and create an instance of that class customClassInst),
> which had a function doing something,  Then somewhere inside the page source
> code called that function
> using the exact object name customClassInst.fooBar().. and that's all.

I don't think that's what I'm after.

I want to create new instances of QObject-derived classes from within
javascript, it sounds like you're describing something else?




More information about the Qt-interest-old mailing list