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

QML-managed objects are garbage collected when stored in QML-declared list properties

    XMLWordPrintable

Details

    • e3adfe617 (dev), 360b5091f (dev), 3cb2e15ee (6.6), e534d05ab (tqtc/lts-6.5)

    Description

      The attached example should print the "Variable" objects just added to the list, but it prints null. If you omit the gc() call in the middle of Main.qml it works.

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: