Bug 41678 - [Qt] QtScript should provide an API for accessing the JS environment from slots
Summary: [Qt] QtScript should provide an API for accessing the JS environment from slots
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: 41664
Blocks: 31863
  Show dependency treegraph
 
Reported: 2010-07-06 03:15 PDT by Kent Hansen
Modified: 2011-07-07 07:49 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 03:15:08 PDT
See http://doc.trolltech.com/latest/qscriptable.html

This API effectively gives a C++ slot access to the this-object and arguments when the slot is invoked from JS.
It's most useful for implementing a QObject-based prototype object.
It can also be used to implement slots that can take an arbitrary number of arguments (normally the "extra" arguments would be discarded when calling the slot).
Comment 1 Jędrzej Nowacki 2011-07-07 07:49:28 PDT
Porting QtScript API over JSC C API will not be continued.