Uploaded image for project: 'Qt Automotive Suite'
  1. Qt Automotive Suite
  2. AUTOSUITE-1361

When inserting into a model in a simulation then it will give an invalid warning

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.13.2
    • Fix Version/s: None
    • Component/s: Qt IVI

      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.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            gagi Dominik Holland
            Reporter:
            andysh Andy Shaw
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes