Closed matdahl closed 3 years ago
replacing
Component.onCompleted: {
height = listView.itemHeight = Qt.binding(function() { return childrenRect.height; });
}
by
Component.onCompleted: {
height = listView.itemHeight = childrenRect.height
}
onChildrenRectChanged: {
height = listView.itemHeight = childrenRect.height
}
should solve the problem.
@matdahl will you PR something for that ? , i've tested locally and binding loops warning are gone.
@lduboeuf done. But I accidentally included the not yet merged changes proposed in the other issue #105 ... Is it better to remove them to make 2 separated PRs or should I merge the PRs, i.e. cancel #106 ?
I think it is better having two separate PR as it address two different things
I guess, I successfully got rid of the other commits now.
The binding
in
OptionSelectorDelegate.qml:128
causes aQML ListView: Binding loop detected for property "itemHeight"
warning each time a component of this type is created.