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

TextInput : ensureVisible incorrectly works in RightToLeft layout

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.7.3, 6.8.0, 6.9
    • None
    • All

      When QuickTextInput uses RightToLeft layout, there are some corner cases to ensureVisible.

      import QtQuick
      
      Window {
          width: 400
          height: 300
          visible: true
          Rectangle {
              border.color: "yellow"
              x: 50
              y: 100
              width: 200
              height: 200
              Item {
                  anchors.fill: parent
                  TextInput {
                      anchors.fill: parent
                      clip: true
                      focus: true
                      cursorVisible: true
                      font.pointSize: 50
                      text: "ﺄﻧﺍ ﺝﺎﺌﻋﺓ، ﺪﻋﻮﻧﺍ ﻥﺄﻜﻟ"
                      cursorDelegate: Rectangle {
                          width: 10
                          color: "red"
                      }
                  }
              }
          }
      }
      

      expected : scrolled to the left edge.


      actual : not scrolled in the right edge.

        1. actual.jpg
          actual.jpg
          20 kB
        2. expected.jpg
          expected.jpg
          27 kB
        For Gerrit Dashboard: QTBUG-130808
        # Subject Branch Project Status CR V

            inho Inho Lee
            inho Inho Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change