Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
Qt for MCUs 2.8.1
-
None
Description
When elide / word wrap is used and a width is explicitly set, the text metrics computation (TextEngine::metrics) gets triggered multiple times during the same frame.
In this example, it gets triggered four times instead of the expected two times:
import QtQuick 2.15 Rectangle { color: "#41CD52" Text { id: text text: "Text" horizontalAlignment: Text.AlignHCenter width: 100 height: 100 elide: Text.ElideRight wrapMode: Text.WordWrap } Timer { interval: 400 running: true onTriggered: { text.text = "Other text" text.width = 80 text.height = 80 } } }