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. Using QML FileDialog leads to "Binding loop" in ToolBar.qml
Forum Updated to NodeBB v4.3 + New Features

Using QML FileDialog leads to "Binding loop" in ToolBar.qml

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 648 Views
  • 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.
  • R Offline
    R Offline
    Rufledore
    wrote on last edited by Rufledore
    #1

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

    Thank you in advance!

    J.HilkJ 1 Reply Last reply
    0
    • R Rufledore

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

      Thank you in advance!

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @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

      https://bugreports.qt.io/browse/QTBUG-90822


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


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

      R 1 Reply Last reply
      0
      • J.HilkJ J.Hilk

        @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

        https://bugreports.qt.io/browse/QTBUG-90822

        R Offline
        R Offline
        Rufledore
        wrote on last edited by Rufledore
        #3

        @J-Hilk Thanks for the advice! I tried with 5.15.2 and it works faster, but it still throw these messages.

        1 Reply Last reply
        0

        • Login

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