Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Binding Loop detected in ListView

Binding Loop detected in ListView

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 407 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vinoth Rajendran4
    wrote on last edited by Vinoth Rajendran4
    #1

    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.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Skrib
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved