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

ListModel doesn't keep objects of JavaScriptOwnership alive

    XMLWordPrintable

    Details

    • Platform/s:
      All
    • Commits:
      16fc4cf366961e50b5bdf29af5c0546fe3c69495 (qt/qtdeclarative/dev) d30fad2a71aa3dab8e858b5fd421f8103b1bdcac (qt/qtdeclarative/6.2)

      Description

      The shown ListModel doesn't keep "o" alive, which is a QObject whose ownership is JavaScriptOwnership. I observe that "gc()" yields to a destructor call of the object that "o" references.

      Please use the attached "gc" tarball that contains an example project. Entering Code doesn't appear to work in the Description.

       

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              jschaubzes Johannes Schaub
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes