Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't detect bindng loop in some cases #653

Open
LastLightSith opened this issue Oct 14, 2021 · 1 comment
Open

Can't detect bindng loop in some cases #653

LastLightSith opened this issue Oct 14, 2021 · 1 comment

Comments

@LastLightSith
Copy link

for example, Gammaray can't detect binding loop for following code:-

import QtQuick 2.15
import QtQuick.Window 2.15

Window {
    width: 600
    height: 480
    visible: true
    title: qsTr("Hello World")

    Rectangle {
        width: childrenRect.width
        color: "green"
        Text {
            text: parent.width > 10 ? "Hello World" : "Hi"
        }
    }
}

while in terminal, I get follwoing message:-

qrc:/main.qml:10:5: QML Rectangle: Binding loop detected for property "width"

Screenshot_20211015_005930

The code at https://github.com/KDAB/kdabtv/blob/2e64adcb503c6669fc2190cc52d6e518d1cee039/qml-intro/ex-binding-loop/main.qml works just fine. Is there something I'm missing

@ferdnyc
Copy link
Contributor

ferdnyc commented Oct 19, 2023

@LastLightSith (I know it's been two years, but...)

I just wanted to note that the video that goes with the ex-binding-loop demo is on the KDAB YouTube channel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants