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

    • 5eceb1801ec881947f80f70f32ea46e00926194f (qt/qtdeclarative/5.12)

      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 
       

       

       

       

        1. test_bug.zip
          4 kB
          Alex Kuznecov
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes