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

Send callback as argument to QJSValue::callAsConstructor()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.12.3, 5.13.0
    • None
    • QT += core qml quick
      Qt_5_12_3_MinGW_64_bit
    • All

    Description

      When trying to call a JavaScript function from C ++ using QJSEngine, all argument properties whose values store functions are mysteriously lost. Why it happens? Is there any way around this bug? If you try to pass a function without an object, the undefined value is also transmitted.

      main.cpp

      Attachments

        1. main.cpp
          2 kB
        2. qjsengine-bug.zip
          1 kB
        3. screenshot.png
          screenshot.png
          19 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            fabiankosmale Fabian Kosmale
            tripolskypetr tripolskypetr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes