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

ListModel doesn't keep objects of JavaScriptOwnership alive

    XMLWordPrintable

Details

    • All
    • 16fc4cf366961e50b5bdf29af5c0546fe3c69495 (qt/qtdeclarative/dev) d30fad2a71aa3dab8e858b5fd421f8103b1bdcac (qt/qtdeclarative/6.2), 718f3469f (dev), 749470e6b (tqtc/lts-6.2), 389110675 (6.5), a22ea1619 (6.4)

    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

          For Gerrit Dashboard: QTBUG-91390
          # Subject Branch Project Status CR V

          Activity

            People

              ulherman Ulf Hermann
              jschaubzes Johannes Schaub
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: