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

"Binding on contentItem is not deferred as requested by the DeferredPropertyNames class info because it constitutes a group property" when instantiating ScrollBar

    XMLWordPrintable

    Details

    • Commits:
      9799d0fd66e2f99cd1d3a2c46d1976b306bfedfc

      Description

      Running this minimal code

      import QtQuick 2.15
      import QtQuick.Controls 2.15
      
      Window {
          id: window
          width: 200
          height: 200
          visible: true
      
          ScrollBar {}
      }
      

      results in

      Binding on contentItem is not deferred as requested by the DeferredPropertyNames class info because it constitutes a group property.
      

      The error doesn't seem to affect the actual opacity animation though:

      import QtQuick 2.15
      import QtQuick.Controls 2.15
      
      Window {
          id: window
          width: 200
          height: 200
          visible: true
      
          Flickable {
              anchors.fill: parent
              focus: true
              contentWidth: textItem.implicitWidth
              contentHeight: textItem.implicitHeight
      
              Keys.onUpPressed: scrollBar.decrease()
              Keys.onDownPressed: scrollBar.increase()
      
              ScrollBar.vertical: ScrollBar { id: scrollBar }
      
              Text {
                  id: textItem
                  text: "ABCDEF\nGHIJK"
                  font.pixelSize: 200
              }
          }
      }
      

      ScrollIndicator has the same issue.

      Likely caused by 9fc480db9a02b0f1084719cc676b976efda18013.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              ulherman Ulf Hermann
              Reporter:
              mitch_curtis Mitch Curtis
              PM Owner:
              Vladimir Minenko Vladimir Minenko
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes