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

qmlscene does not cleanup top level windows

    XMLWordPrintable

Details

    • qtdeclarative/stable: 686f144ceea9ee219f5922c4b2eadb4eba890cbf

    Description

      Run the following app with qmlscene => ~QQuickXmlListModel() never gets called.

      // main.qml
      import QtQuick 2.1
      import QtQuick.Window 2.1
      import QtQuick.XmlListModel 2.0
      
      Window {
          XmlListModel {
              id: model
              Component.onCompleted: console.log("Component.onCompleted:", model)
              Component.onDestruction: console.log("Component.onDestruction:", model)
          }
      }
      

      If the top level item is an Item instead, the QQuickXmlListModel instance gets properly destructed.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jpnurmi J-P Nurmi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes