Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-56911

Elide does not consider RTL/LTR fonts but text alignment for its decision

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.7.0
    • Quick: Other
    • None

    Description

      Hi,

      I have a fixed-size label with text on it and since that text comes from QM files, I want it to be elided when it is too long for the label.

      If I now use Text.ElideRight, RTL fonts are cut off at the beginning of the string. Would it not be great if there was something like Text.ElideFront and Text.ElideBack which always cuts off the beginning or end of the string regardless of it's writing direction?

      Or is there already a nice way this can be handled? The docs of the elide property do not mention RTL fonts.
      https://doc.qt.io/qt-5/qml-qtquick-text.html#elide-prop

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            w00t Robin Burchell
            fsch Anonymous (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes