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

Make parent object optionally explicit in Qt.createComponent()

XMLWordPrintable

      When Qt.createComponent(...) is invoked in QML, the created component is automatically parented to the running QML engine. This prevents the component object from being collected even if there are no javascript references to the object. To allow the object to be cleaned up when no longer in use, the automatic parenting will be removed. It is therefore necessary to allow the creator of the component to optionally specify a parent object directly, to prevent unwanted collection.

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

            mvogt Matthew Vogt (closed Nokia identity) (Inactive)
            mvogt Matthew Vogt (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes