![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Go to the source code of this file.
Functions | |
myObject | setProperty ("myChild", myOtherObject) |
myObject | setProperty ("name", "John Doe") |
engine | evaluate ("function fullName() { return this.firstName + ' ' + this.lastName; }") |
engine | evaluate ("somePerson = { firstName: 'John', lastName: 'Doe' }") |
qDebug ()<< fullName.call(who).toString() | |
engine | evaluate ("function cube(x) { return x * x * x; }") |
Variables | |
QJSEngine | myEngine |
[0] | |
QJSValue | myObject = myEngine.newObject() |
QJSValue | myOtherObject = myEngine.newObject() |
QJSEngine | engine |
[0] | |
QJSValue | global = engine.globalObject() |
QJSValue | fullName = global.property("fullName") |
QJSValue | who = global.property("somePerson") |
QJSValue | cube = global.property("cube") |
QJSValueList | args |
engine evaluate | ( | ) |
qDebug | ( | ) |
myObject setProperty | ( | "myChild" | , |
myOtherObject | ) |
myObject setProperty | ( | "name" | , |
"John Doe" | ) |
QJSValueList args |
Definition at line 25 of file src_script_qjsvalue.cpp.
const float cube = global.property("cube") |
Definition at line 24 of file src_script_qjsvalue.cpp.
QJSEngine engine |
[0]
[qjs-engine]
[qjs-engine-example]
[1]
Definition at line 14 of file src_script_qjsvalue.cpp.
Referenced by GeoTiledMapEsri::GeoTiledMapEsri().
QJSValue fullName = global.property("fullName") |
Definition at line 19 of file src_script_qjsvalue.cpp.
QJSValue global = engine.globalObject() |
Definition at line 18 of file src_script_qjsvalue.cpp.
QJSEngine myEngine |
[0]
Definition at line 5 of file src_script_qjsvalue.cpp.
QJSValue myObject = myEngine.newObject() |
Definition at line 6 of file src_script_qjsvalue.cpp.
QJSValue myOtherObject = myEngine.newObject() |
Definition at line 7 of file src_script_qjsvalue.cpp.
QJSValue who = global.property("somePerson") |
Definition at line 20 of file src_script_qjsvalue.cpp.