Bug 41664

Summary: [Qt] QScriptEngine should have an API for wrapping a QObject
Product: WebKit Reporter: Kent Hansen <kent.hansen>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Enhancement CC: cmarcelo, jedrzej.nowacki
Priority: P2 Keywords: Qt, QtTriaged
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   
Bug Depends on:    
Bug Blocks: 31863, 41678    

Description Kent Hansen 2010-07-06 01:51:07 PDT
See http://doc.trolltech.com/latest/qscriptengine.html#newQObject

The JSC C API's JSClassDefinition and friends can be used to implement this feature.
Comment 1 Kent Hansen 2010-07-06 03:23:00 PDT
There should also be corresponding methods QScriptValue::isQObject() and QScriptValue::toQObject().
Comment 2 Kent Hansen 2010-07-06 03:34:23 PDT
This related API should also be implemented: http://doc.trolltech.com/latest/qscriptengine.html#signalHandlerException
Comment 3 Kent Hansen 2010-07-27 10:46:57 PDT
I've started documenting Qt's existing QObject binding here: https://trac.webkit.org/wiki/QtScript
Comment 4 Jędrzej Nowacki 2011-07-07 07:51:58 PDT
Porting QtScript API over JSC C API will not be continued.