Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
None
-
5.13.2
Description
When inserting into a model in a simulation then it will give an invalid warning. If the following is used where MyData is a struct:
myServiceBackend.someData.insert(0, ModuleName.myData("str", false, ""));
Then it will output:
"Could not convert argument 1 at" "<..stack trace..>" "Passing incompatible arguments to C++ functions from JavaScript is dangerous and deprecated." "This will throw a JavaScript TypeError in future releases of Qt!"
Whereas doing it like:
var info = ModuleName.myData(); info.first = "str"; myServiceBackend.someData.insert(0, info);
Will work fine.