Bug 41664
Summary: | [Qt] QScriptEngine should have an API for wrapping a QObject | ||
---|---|---|---|
Product: | WebKit | Reporter: | Kent Hansen <kent.hansen> |
Component: | JavaScriptCore | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Kent Hansen
There should also be corresponding methods QScriptValue::isQObject() and QScriptValue::toQObject().
Kent Hansen
This related API should also be implemented: http://doc.trolltech.com/latest/qscriptengine.html#signalHandlerException
Kent Hansen
I've started documenting Qt's existing QObject binding here: https://trac.webkit.org/wiki/QtScript
Jędrzej Nowacki
Porting QtScript API over JSC C API will not be continued.