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

Binding Loop detected in ListView



  • Hi All,
    I am getting the error,

    QML ListView: Binding loop detected for property "topMargin"
    

    Here is a snippet of my code base,

     ListView {
            id: fxListView
    
            anchors.fill: parent
            clip: true
            spacing: 0
            boundsBehavior: Flickable.StopAtBounds
            topMargin: parent.height - contentHeight  
    
    

    Can someone please help me understand why binding loop is detected..

    Thanks in advance.



  • Hello,

    Well, I don't see why you would want to do that. I am lacking some context. There is maybe a better way to do what you want ? I'm assuming the result is good enough for you, so try to create a delayed binding ?

    Binding  on topMargin{
    value: parent.height - contentHeight
    delayed: true
    }
    

    Regards,
    Skrib


Log in to reply