GammaRay icon indicating copy to clipboard operation
GammaRay copied to clipboard

Can't detect bindng loop in some cases

Open LightSith opened this issue 5 years ago • 1 comments

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

LightSith avatar Oct 14 '21 19:10 LightSith

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

ferdnyc avatar Oct 19 '23 12:10 ferdnyc