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

QML Flickable: Binding loop detected for property "contentWidth"

    XMLWordPrintable

Details

    • Linux/X11, Windows

    Description

      QML Flickable: Binding loop detected for property "contentWidth"

       I followed the document to set the contentwidth and contentheight as same as the contentItem, but met this warning. Below is the snippet. 

       

      // code placeholder
      

       

       

      import QtQuick 2.12import QtQuick.Window 2.12
      Window 
      { 
      visible: true 
      width: 640
       height: 480
       title: qsTr("Hello World") 
      Flickable
      { 
      contentWidth: contentItem.childrenRect.width; 
      contentHeight: contentItem.childrenRect.height 
      Image 
      { 
      width: 1000 height: 1000 
      }
       }
      }

       

      Attachments

        Issue Links

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

          Activity

            People

              sami.shalayel Sami Shalayel
              yorkchenqt1989 York Chen
              Votes:
              3 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes