Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
Qt Creator 7.0.0
-
None
-
Ubuntu 20.04.3 LTS
Description
Button height doesn't change for the second button if I click it, but if we add some number to make it non equal to parent.height then it works as needed (the first button).
Button { text: "VALUE: " + background.height background: Rectangle { id: background color: "blue" height: parent.down ? (parent.height - 5) : (parent.height + 0.00000001) } } Button { text: "VALUE: " + background2.height background: Rectangle { id: background2 color: "yellow" height: parent.down ? (parent.height - 5) : (parent.height) } }