KDAB / GammaRay

GammaRay is a tool to poke around in a Qt-application and also to manipulate the application to some extent.
https://www.kdab.com/gammaray
Other
1.6k stars 279 forks source link

Can't detect bindng loop in some cases #653

Open LastLightSith opened 2 years ago

LastLightSith commented 2 years ago

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 commented 11 months ago

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