Bug 41664 - [Qt] QScriptEngine should have an API for wrapping a QObject
Summary: [Qt] QScriptEngine should have an API for wrapping a QObject
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Enhancement
Assignee: Nobody
URL:
Keywords: Qt, QtTriaged
Depends on:
Blocks: 31863 41678
  Show dependency treegraph
 
Reported: 2010-07-06 01:51 PDT by Kent Hansen
Modified: 2011-07-07 07:51 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.