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

C++ object destructor is not invoked when QML item is destroyed

    XMLWordPrintable

Details

    Description

      I have a subclass of QQuickItem that I use in a qml view. I've noticed that when I destroy the qml view, all qml-based children are destroyed but for c++ objects it's not a case. When I close the whole application, destructors for these objects are invoked. Is it possible to do something with that?

      [Reference |https://forum.qt.io/topic/45482/c-object-destructor-is-not-invoked-when-qml-item-is-destroyed]

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            je0000 Jadyn Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes