Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved QML Binging loop detected for property

    General and Desktop
    2
    3
    86
    Loading More Posts
    • 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.
    • SPlatten
      SPlatten last edited by SPlatten

      I'm getting this:

      qrc:/qml/[filepath and QML file]:239:9 QML Details: Binding loop detected for property "blah"
      

      Firstly I've searched for the mentioned property and whilst it is in the QML I can see nothing that would cause this message, what does it actually mean and how to I avoid it?

      Kind Regards,
      Sy

      J.Hilk 1 Reply Last reply Reply Quote 0
      • J.Hilk
        J.Hilk Moderators @SPlatten last edited by

        @SPlatten said in QML Binging loop detected for property:

        what does it actually mean and how to I avoid it?

        it means that the setter of "blah" is called multiple times per event loop cycle and each time the value changed.

        usually this happens due to circular property binding

        the QmlEngine will detect it, that's when you get the "warning", and break the binding.

        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct

        Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        1 Reply Last reply Reply Quote 2
        • J.Hilk
          J.Hilk Moderators @SPlatten last edited by

          @SPlatten said in QML Binging loop detected for property:

          what does it actually mean and how to I avoid it?

          it means that the setter of "blah" is called multiple times per event loop cycle and each time the value changed.

          usually this happens due to circular property binding

          the QmlEngine will detect it, that's when you get the "warning", and break the binding.

          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct

          Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply Reply Quote 2
          • SPlatten
            SPlatten last edited by

            Thank you, I'm looking at ways of reducing and condensing the file, there are lots of similar things in the file.

            Kind Regards,
            Sy

            1 Reply Last reply Reply Quote 1
            • First post
              Last post