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



  • 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.



  • @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).


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.