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

Row and Column Repeater children have wrong QObject parent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: P4: Low P4: Low
    • None
    • 5.8.0
    • None

      Given the following code:

      import QtQuick 2.6
      import QtQuick.Window 2.2
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          Row
          {
              anchors.fill: parent
              Repeater
              {
                  model: 6
                  delegate: Text { objectName: "text." + index ; text: objectName }
              }
          }
      }
      

      The Text objects's visual item parent is the Row instance, but their QObject parent is nullptr; I would expect it to be the same than their visual parent.

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

            w00t Robin Burchell
            jcelerier Jean-Michaƫl Celerier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There is 1 open Gerrit change