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

[REG 5.9.1->5.9.2]: When an item loaded in a loader is destroyed then it can cause children to print warnings that referred to the parent

    XMLWordPrintable

Details

    Description

      Attached will be a sample application to produce the issue. Press the 'Remove tab' and it will print lots of warnings. This started from 5.9.2. The 5.9.1 works fine.

      file:///home/CORPUSERS/23058288/Qt/5.9.2/gcc_64/qml/QtQuick/Controls/Styles/Base/TabViewStyle.qml:149:9: QML Item: Cannot anchor to an item that isn't a parent or sibling. 
      file:///home/CORPUSERS/23058288/Qt/5.9.2/gcc_64/qml/QtQuick/Controls/Styles/Base/TabViewStyle.qml:162:9: QML Text: Cannot anchor to an item that isn't a parent or sibling. 
      file:///home/CORPUSERS/23058288/Qt/5.9.2/gcc_64/qml/QtQuick/Controls/ScrollView.qml:258: ReferenceError: parent is not defined 
      file:///home/CORPUSERS/23058288/Qt/5.9.2/gcc_64/qml/QtQuick/Controls/Private/ScrollViewHelper.qml:110: ReferenceError: parent is not defined 
      file:///home/CORPUSERS/23058288/Qt/5.9.2/gcc_64/qml/QtQuick/Controls/Private/ScrollViewHelper.qml:111: ReferenceError: parent is not defined 
      file:///home/CORPUSERS/23058288/Qt/5.9.2/gcc_64/qml/QtQuick/Controls/Private/ScrollViewHelper.qml:132: ReferenceError: parent is not defined 
      file:///home/CORPUSERS/23058288/Qt/5.9.2/gcc_64/qml/QtQuick/Controls/Private/ScrollViewHelper.qml:133: ReferenceError: parent is not defined 
      file:///home/CORPUSERS/23058288/Qt/5.9.2/gcc_64/qml/QtQuick/Controls/Private/ScrollViewHelper.qml:187: ReferenceError: parent is not defined 
      file:///home/CORPUSERS/23058288/Qt/5.9.2/gcc_64/qml/QtQuick/Controls/Private/ScrollViewHelper.qml:188: ReferenceError: parent is not defined 
      file:///home/CORPUSERS/23058288/Qt/5.9.2/gcc_64/qml/QtQuick/Controls/Private/ScrollBar.qml:76: ReferenceError: parent is not defined 
      file:///home/CORPUSERS/23058288/Qt/5.9.2/gcc_64/qml/QtQuick/Controls/Private/ScrollBar.qml:93: ReferenceError: parent is not defined 
      file:///home/CORPUSERS/23058288/Qt/5.9.2/gcc_64/qml/QtQuick/Controls/Private/ScrollBar.qml:76: ReferenceError: parent is not defined 
      file:///home/CORPUSERS/23058288/Qt/5.9.2/gcc_64/qml/QtQuick/Controls/Private/ScrollBar.qml:93: ReferenceError: parent is not defined 
      file:///home/CORPUSERS/23058288/Qt/5.9.2/gcc_64/qml/QtQuick/Controls/Private/FocusFrame.qml:64: ReferenceError: parent is not defined 
      file:///home/CORPUSERS/23058288/Qt/5.9.2/gcc_64/qml/QtQuick/Controls/Private/BasicTableView.qml:766: ReferenceError: parent is not defined 
      file:///home/CORPUSERS/23058288/Qt/5.9.2/gcc_64/qml/QtQuick/Controls/Private/BasicTableView.qml:767: ReferenceError: parent is not defined 
      file:///home/CORPUSERS/23058288/Qt/5.9.2/gcc_64/qml/QtQuick/Controls/Private/BasicTableView.qml:723: TypeError: Cannot read property 'height' of null 
      file:///home/CORPUSERS/23058288/Qt/5.9.2/gcc_64/qml/QtQuick/Controls/Private/BasicTableView.qml:723: TypeError: Cannot read property 'height' of null
      

      Update: I have changed the subject to be more encapsulating as this is not specific to TabView.

      Attachments

        Issue Links

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

          Activity

            People

              laknoll Lars Knoll
              misalmel Mika Salmela
              Votes:
              15 Vote for this issue
              Watchers:
              32 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes