Unsolved '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).
-
I have the same problem. How can I solve it?
-
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 -
Has someone solved this problem? I have the same issue and I don't know how to proceed.
-
@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.