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    

Kent Hansen
Reported 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.
Attachments
Kent Hansen
Comment 1 2010-07-06 03:23:00 PDT
There should also be corresponding methods QScriptValue::isQObject() and QScriptValue::toQObject().
Kent Hansen
Comment 2 2010-07-06 03:34:23 PDT
Kent Hansen
Comment 3 2010-07-27 10:46:57 PDT
I've started documenting Qt's existing QObject binding here: https://trac.webkit.org/wiki/QtScript
Jędrzej Nowacki
Comment 4 2011-07-07 07:51:58 PDT
Porting QtScript API over JSC C API will not be continued.
Note You need to log in before you can comment on or make changes to this bug.