Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QML Loader: Binding loop detected for property "y"



  • Hi All,
    How can i over come this issue:
    WARNING:QML Loader: Binding loop detected for property "y"

    Loader {
                    id: grooveLoader
                    property QtObject styleData: QtObject {
                        readonly property int handlePosition: handleLoader.x + handleLoader.width/2
                    }
                    x: padding.left
                    sourceComponent: groove
                    width: (horizontal ? parent.width : parent.height) - padding.left - padding.right
                    y:  Math.round(padding.top + (Math.round(horizontal ? parent.height : parent.width - padding.top - padding.bottom) - grooveLoader.item.height)/2)
                }
    

    WARNING:QML Loader: Binding loop detected for property "x"

                Loader {
                    id: handleLoader
                    sourceComponent: handle
                    anchors.verticalCenter: grooveLoader.verticalCenter
                    x: Math.round((control.__handlePos - control.minimumValue) / (control.maximumValue - control.minimumValue) * ((horizontal ? root.width : root.height) - item.width))
                }
    

    EDIT (sierdzio): added code tags


Log in to reply