Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-65808

Can't compile QJSEngine code snippet

    XMLWordPrintable

Details

    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

      Attachments

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

        Activity

          People

            vertries Nico Vertriest (Inactive)
            taurus Ivan Romanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes