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. Spurious Binding loop?
Qt 6.11 is out! See what's new in the release blog

Spurious Binding loop?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 616 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.
  • M Offline
    M Offline
    maxwell31
    wrote on last edited by
    #1

    Hi,

    I am having a problem with a binding loop. I have an item which emits a signal if its position is changing due to a drag. This signal updates a property called 'value' and then I use onValueChanged to to do something else. The problem I have is that sometimes during dragging, I get a qml binding loop warning. However, not for every drag, but lets say for every 30 or 40 drag events it happens once. I want to avoid going into the details, as I cannot reproduce this with a simple example yet, my question is rather how does the binding loop detection work? I don't understand why a binding loop would be there just sometimes and othertimes not. Also, I tried to use gammaray to look into the bindings, and it does not see any loops.

    Could it be that if a property is updated too often in a short interval of time, qml thinks its a binding loop and outputs a warning?

    1 Reply Last reply
    0
    • GabrielRRG Offline
      GabrielRRG Offline
      GabrielRR
      wrote on last edited by
      #2

      Hello, since you can't reproduce with a simple example I would recommend you checking there is not a binding loop because you evaluate the same property inside a JS function or something similar. Also the issue may be related to the drag, since I do not know how it is "value" getting updated and used it may be happening that QML thinks you are in a binding loop or you may be at a binding loop if some conditions are meet after a drag that will cause "value" to modify your propertys holding the position of your item.

      Lic-Ing. Jose Gabriel Lopez Villalobos
      Embedded Software Engineer
      RidgeRun Engineering Ltd.
      www.ridgerun.com
      Email: gabriel.lopez@ridgerun.com

      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