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

Row and Column Repeater children have wrong QObject parent

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There is 1 open Gerrit change