[Interest] QML: Strange "binding loop detected" message
alervdvcw at gmail.com
Fri Apr 2 07:53:09 CEST 2021
I have a table. I change one column's size when user hovers it. Each row
in this column can require different "hovered" width. And I would like
it to return back in 3 seconds after mouse pointer left it.
So, I use this:
property bool viewSpeedColumnHovered: false
property int viewSpeedColumnHoveredWidth: 0
property double viewSpeedColumnNotHoveredSinceTime: 0
These properties are set outside of my control and the question is not
To achieve the above I use this property:
property int speedColumnHoveredWidth: downloadsViewSpeedColumnHovered ?
Math.max(speedColumnHoveredWidth, viewSpeedColumnHoveredWidth) :
viewSpeedColumnNotHoveredSinceTime < 3000) ? speedColumnHoveredWidth :
When I hover the column first time - all is OK. But after 3 seconds has
passed, it returns to 0. My column became normal again. Then I hover it
again and get this strange message:
QML ViewHeaderColumnsWidthCalc: Binding loop detected for property
I can't understand how can this be... If Math.max returns the property
itself (speedColumnHoveredWidth), then it should not generate "changed"
signal (property remains the same).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest