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

Add ways to affect default layout directional of TextEdit

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.5.0 Beta3
    • GUI: Text handling
    • None

      When a paragraph of text does not contain any strongly directional characters, then neutral characters will adopt the direction of the paragraph itself. This is not defined by the UBA and typically based on some sort of heuristic. In QTextEdit, the paragraph direction appears to be based on the direction of the current language (if detected via translations) or it defaults to LTR.

      In Qt Quick's TextEdit the direction is based on the direction of the first paragraph of text.

      The difference here is a bit unfortunate, but it is likely too late to change any defaults. However, we should give the user more control over how this is determined in Qt Quick. At the very least, overriding the default layout direction of the editor should be possible (like you can with QTextOption in Qt Widgets) but maybe also a way to switch between different types of heuristics would make sense?

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

            esabraha Eskil Abrahamsen Blomfeldt
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes