how is this not a binding loop?
-
Hi all -
I was playing with one of the examples (Qt Quick Controls - Gallery), and came across this bit of code:
Flickable { id: flickable contentHeight: pane.height Pane { id: pane height: flickable.height * 1.25
How is this not a binding loop?
Thanks...
-
@mzimmers said in how is this not a binding loop?:
binding loop
you read here
https://doc.qt.io/qt-5/qml-qtquick-flickable.html#contentHeight-prop
flickable.height and flickable.contentHeight are two different things. flickable.contentHeight does not affect flickable.height. -
@mzimmers said in how is this not a binding loop?:
binding loop
you read here
https://doc.qt.io/qt-5/qml-qtquick-flickable.html#contentHeight-prop
flickable.height and flickable.contentHeight are two different things. flickable.contentHeight does not affect flickable.height.@JoeCFD yeah, I did read that, but I didn't understand it at first. I guess the purpose of a Flickable is more to accept user input than to control the display of its contents?
As I mentioned in another thread, I'm still not able to get my Flickable's ScrollBar working, and I thought it might be related to this, but...now I guess not.
Thanks...