Using QML FileDialog leads to "Binding loop" in ToolBar.qml
-
Hello,
I have an issue that I can't solve by myself. I develop an UI using this third party library/framework - https://github.com/papyros/qml-material. It is with controls and layouts developed according to the Google Guidelines. The problem is that when I use FileDialog in the project, the page that it is defined in loads slowly and I get the following messages:file:///C:/.../QtQuick/Controls/ToolBar.qml:146:9: QML QQuickItem*: Binding loop detected for property "layoutHeight" file:///C:/.../QtQuick/Dialogs/DefaultFileDialog.qml:407:9: QML ToolBar: Binding loop detected for property "implicitHeight" file:///C:/.../QtQuick/Dialogs/DefaultFileDialog.qml:407:9: QML ToolBar: Binding loop detected for property "implicitHeight"
There is a component named ToolBar in the third party library that I use, so I thought the problem is there and I renamed it to MyToolBar, but that didn't help.
There is an old thread here with a similar problem but it has not been solved.
It will be great if someone knows the answer.
The issue can be reproduced very easily with the Demo that is in the GitHub project of the library - https://github.com/papyros/qml-material/tree/develop/demo. Just add FileDialog somewhere there and see how the page will be loaded and what messages you will get.
Qt version used: 5.12.6Thank you in advance!
-
Hello,
I have an issue that I can't solve by myself. I develop an UI using this third party library/framework - https://github.com/papyros/qml-material. It is with controls and layouts developed according to the Google Guidelines. The problem is that when I use FileDialog in the project, the page that it is defined in loads slowly and I get the following messages:file:///C:/.../QtQuick/Controls/ToolBar.qml:146:9: QML QQuickItem*: Binding loop detected for property "layoutHeight" file:///C:/.../QtQuick/Dialogs/DefaultFileDialog.qml:407:9: QML ToolBar: Binding loop detected for property "implicitHeight" file:///C:/.../QtQuick/Dialogs/DefaultFileDialog.qml:407:9: QML ToolBar: Binding loop detected for property "implicitHeight"
There is a component named ToolBar in the third party library that I use, so I thought the problem is there and I renamed it to MyToolBar, but that didn't help.
There is an old thread here with a similar problem but it has not been solved.
It will be great if someone knows the answer.
The issue can be reproduced very easily with the Demo that is in the GitHub project of the library - https://github.com/papyros/qml-material/tree/develop/demo. Just add FileDialog somewhere there and see how the page will be loaded and what messages you will get.
Qt version used: 5.12.6Thank you in advance!
@Rufledore hi,
thats not unusual, the QtQuick dialogs module, especially in 5.12.6 is a but dodgy and not completely flushed out, so binding loop is, sadly, normal.
However, it also not the problem for your slow loading. That is due to the Dialog creation.
I had the issue too but it was actually compiler related. See here for the bug report
-
@Rufledore hi,
thats not unusual, the QtQuick dialogs module, especially in 5.12.6 is a but dodgy and not completely flushed out, so binding loop is, sadly, normal.
However, it also not the problem for your slow loading. That is due to the Dialog creation.
I had the issue too but it was actually compiler related. See here for the bug report