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

Wrong android cursor textarea positiion.

    XMLWordPrintable

Details

    • Android
    • 2022wk08FOAndroid&Automotive, 2022wk10FOAndroid&Automotive, 2022wk12FOAndroid&Automotive, 2022wk14FOAndroid&Automotive, 2022wk16FOAndroid&Automotive, 2022wk18FOAndroid&Automotive, 2022wk20FOAndroid&Automotive, 2022wk22FOQtforAndroid, 2022wk24FOQtforAndroid, 2022wk26FOQtforAndroid, 2022wk28FOQtforAndroid, 2022wk30FOQtforAndroid, 2022wk32FOQtforAndroid, 2022wk34FOQtforAndroid, 2022wk36FOQtforAndroid, 2022wk38FOQtforAndroid, 2022wk40FOQtforAndroid, 2022wk42FOQtforAndroid, 2022wk44FOQtforAndroid, 2023wk06FOQtforAndroid

    Description

      Wrong cursor position in Android when editing text. Cursor seems also laggy when trying to move it around text.
      When TextField anchored to the top it seems normal, but when it in the bottom, it gives wrong cursor position, it's ok in non Qt apps.

      Tested on Samsung (Android 11. OneUI) and Asus (Android 10. Android one) devices. Also, I tried to use different keyboards Gboard and Samsung keyboard.

      In Qt 5 everything is ok.



      import
      QtQuick
      import QtQuick.Controls

      ApplicationWindow {
          visible: true 

          TextArea {
              height: 75

              anchors {
                 left: parent.left
                 right: parent.right
                 bottom: parent.bottom
              }
          }

      Attachments

        1. 1.jpg
          1.jpg
          44 kB
        2. 2.jpg
          2.jpg
          45 kB
        3. 3.jpg
          3.jpg
          44 kB
        4. oneplus7t-qt5151.mp4
          3.76 MB
        5. oneplus7t-qt5158.mp4
          2.72 MB

        Issue Links

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

          Activity

            People

              rampe Rami Potinkara
              brutalwizard BrutalWizard
              Ramon Sadornil Ramon Sadornil (Inactive)
              Rami Potinkara Rami Potinkara
              Votes:
              5 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes