Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
5.12.4, 5.13.0
-
-
c54083ff933830a28f43551b9c3b132bfb11492d (qt/qtbase/5.15)
Description
Please check the code bellow:
import QtQuick 2.12 import QtQuick.Window 2.12 import QtQuick.Controls 2.12 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") Column { Text { id: t text: "Hello World" height: 0 renderType: Text.NativeRendering onHeightChanged: console.log("Height: ", height) Behavior on height { NumberAnimation { duration: 250 easing.type: Easing.Bezier easing.bezierCurve: [ 0.4, 0, 0.2, 1, 1, 1] } } } TextInput { text: "Break me" renderType: Text.NativeRendering font.pixelSize: 24 } Button { text: "Break it" onClicked: t.height += 48 } } }
Expected last log would be: qml: Height: 48
But it is: qml: Height: 47.99999999505308
Attachments
Issue Links
- duplicates
-
QTBUG-72630 Wrong value from BezierSpline QEasingCurve
- Closed
For Gerrit Dashboard: QTBUG-76781 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
276796,3 | Fix QEasingCurve possible imprecision at endpoints | 5.14 | qt/qtbase | Status: MERGED | +2 | 0 |