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

[REG 5.12.2->5.12.3] QML: The loss of "this" context in a function

    XMLWordPrintable

    Details

    • Commits:
      5eceb1801ec881947f80f70f32ea46e00926194f (qt/qtdeclarative/5.12)

      Description

      In some cases, "this" context of the directly called function is incorrect.

      Error in an example : Cannot assign QJSValue to QQuickItem*

      How to repeat:

      • Launch attached example test_bug.zip
      • Wait for display text and green rectangle 
      • Click on any area of a window
      • EXPECTED: get not empty this context
      • ACTUAL: in log error: Cannot assign QJSValue to QQuickItem*

      Regression commit in qtdeclarative module, link https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=bcbce96fffd25a4f2810f03cec060ab13e34ac9e 
       

       

       

       

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              ulherman Ulf Hermann
              Reporter:
              alex0x00 Alex Kuznecov
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes