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 for property "layoutHeight" after adding a FileDialog
Forum Updated to NodeBB v4.3 + New Features

'Binding loop detected for property "layoutHeight" after adding a FileDialog

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 6 Posters 2.6k Views 1 Watching
  • 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.
  • O Offline
    O Offline
    obiwanjacobi
    wrote on last edited by
    #1

    My first QML project. After adding a FileDialog I get this error:

    file:///C:/Qt/5.9.2/msvc2017_64/qml/QtQuick/Controls/ToolBar.qml:146:9: QML QQuickItem*: Binding loop detected for property "layoutHeight"
    file:///C:/Qt/5.9.2/msvc2017_64/qml/QtQuick/Dialogs/DefaultFileDialog.qml:407:9: QML ToolBar: Binding loop detected for property "implicitHeight"
    file:///C:/Qt/5.9.2/msvc2017_64/qml/QtQuick/Dialogs/DefaultFileDialog.qml:407:9: QML ToolBar: Binding loop detected for property "implicitHeight"

    The application also slows down at that point quite a bit (while looping I presume).

    I have commented out all Toolbars I used, but that did not help. I have no clue how to solve this so any assistance is most welcome.
    Any ideas?

    I have not made a QML project yet to isolate this problem. My current project is too big to post.

    E 1 Reply Last reply
    0
    • O obiwanjacobi

      My first QML project. After adding a FileDialog I get this error:

      file:///C:/Qt/5.9.2/msvc2017_64/qml/QtQuick/Controls/ToolBar.qml:146:9: QML QQuickItem*: Binding loop detected for property "layoutHeight"
      file:///C:/Qt/5.9.2/msvc2017_64/qml/QtQuick/Dialogs/DefaultFileDialog.qml:407:9: QML ToolBar: Binding loop detected for property "implicitHeight"
      file:///C:/Qt/5.9.2/msvc2017_64/qml/QtQuick/Dialogs/DefaultFileDialog.qml:407:9: QML ToolBar: Binding loop detected for property "implicitHeight"

      The application also slows down at that point quite a bit (while looping I presume).

      I have commented out all Toolbars I used, but that did not help. I have no clue how to solve this so any assistance is most welcome.
      Any ideas?

      I have not made a QML project yet to isolate this problem. My current project is too big to post.

      E Offline
      E Offline
      Eeli K
      wrote on last edited by Eeli K
      #2

      @obiwanjacobi Probably there's no bug in Qt here, you have introduced a circular property binding yourself. At least show the code where you set implicitHeight or layoutHeight or both of some items, either inside the Toolbar you're adding or outside of it.

      Edit: I meant the file dialog or whatever you added, not necessarily toolbar (I just saw the latter it in the error message).

      1 Reply Last reply
      0
      • B Offline
        B Offline
        BaiRutai
        wrote on last edited by
        #3

        I have the same problem. How can I solve it?

        1 Reply Last reply
        0
        • 6thC6 Offline
          6thC6 Offline
          6thC
          wrote on last edited by
          #4

          Sometimes the javascript / QML profiler can be handy to see where things are burning cpu...
          http://doc.qt.io/qtcreator/creator-qml-performance-monitor.html

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Rufledore
            wrote on last edited by
            #5

            Has someone solved this problem? I have the same issue and I don't know how to proceed.

            KroMignonK 1 Reply Last reply
            0
            • R Rufledore

              Has someone solved this problem? I have the same issue and I don't know how to proceed.

              KroMignonK Offline
              KroMignonK Offline
              KroMignon
              wrote on last edited by
              #6

              @Rufledore said in 'Binding loop detected for property "layoutHeight" after adding a FileDialog:

              I have the same issue and I don't know how to proceed.

              Take a look at this tutorial https://www.youtube.com/watch?v=aSMEcAmcPDc
              This will help you to understand binding loops, and perhaps to find out what's going wrong.

              It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

              1 Reply Last reply
              1

              • Login

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