Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.12.4
-
None
-
Linux Xubuntu 18.04 LTS x64
-
-
82247946b2733bcd5bb3740a31c7d38fb90f6ddd
Description
QML Text element cust a word that shouldn't be wrapped when the following properties are set:
wrapMode: Text.WordWrap
elide: Text.ElideRight
maximumLineCount: 1
import QtQuick 2.12 import QtQuick.Window 2.12 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") Text { anchors.centerIn: parent height: 50 width: 163 text: "Hello World" font.pixelSize: 30 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft wrapMode: Text.WordWrap elide: Text.ElideRight maximumLineCount: 1 Rectangle { anchors.fill: parent color: "transparent" border.width: 1 border.color: "black" } } }