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

QML SliderStyle Binding loop

XMLWordPrintable

      I have an app that is using the QML Slider Control:

      import QtQuick 2.5
      import QtQuick.Window 2.2
      import QtQuick.Controls 1.4
      import QtQuick.Layouts 1.2
      
      Column
      {
          anchors.top: parent.top ;
          anchors.left: parent.left ;
          anchors.right: parent.right ;
          spacing: 10
      
          Row
          {
              Slider
              {
                  id: gslider
                  value: 0.5
                  width: 200
              }
          }
      
         //other rows of QML components
      }
      

      And I am getting QML Binding errors on a property that is not specific on a style for the slider.

      When I run it on OSX El Capitan:

      file:///macdev/qt55/5.5/clang_64/qml/QtQuick/Controls/Styles/Base/SliderStyle.qml:202:13: QML Loader: Binding loop detected for property "y"
      file:///macdev/qt55/5.5/clang_64/qml/QtQuick/Controls/Styles/Base/SliderStyle.qml:218:13: QML Loader: Binding loop detected for property "x"
      file:///macdev/qt55/5.5/clang_64/qml/QtQuick/Controls/Styles/Base/SliderStyle.qml:218:13: QML Loader: Binding loop detected for property "x"
      

      This occurs on Android, IOS, and OSX on 5.6 and 5.5.1

      Yet in the QML snippet there is no reference to "x" or "y" in gslider.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            qtmarco mark diener
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes