Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P3: Somewhat important
-
Resolution: Done
-
Affects Version/s: 5.10.0
-
Fix Version/s: 5.11
-
Component/s: QML: Declarative and Javascript Engine
-
Labels:None
Description
Documentation says
QJSValue fun = myEngine.evaluate("(function(a, b) \{ return a + b; })");
QJSValueList args;
args << 1 << 2;
QJSValue threeAgain = fun.call(QJSValue(), args);
But QJSValue::call takes only one argument. Probably this is typo and correct function is callWithInstance