Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.0.2
-
None
-
desktop, Ubuntu 13.04
Description
Setting the elide of a Text-element to Text.ElideLeft does not cause the rendered text to be ellipsized at the beginning of the string, if the text spans multiple lines. Only if the text-display is restricted to one line Text.ElideLeft works.
So instead of showing only, say the last 10 lines (using "maximumLineCount: 10"), and cutting off the beginning using "...", the end of the text is being cut off without any indication that it has been cut off.
Here's an example exposing the bug:
expose-bug.qml
import QtQuick 2.0 Rectangle { color: "grey" width: 400 height: 400 Rectangle { width: 300 height: 200 color: "blue" anchors { top: parent.top topMargin: 10 left: parent.left leftMargin: 10 } Text { anchors.fill: parent textFormat: Text.PlainText anchors.margins: 10 color: "white" wrapMode: Text.WrapAnywhere maximumLineCount: 10 elide: Text.ElideLeft text: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet." } } }