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

ApplicationWindow is resized/redrawn tapping on TextArea in Android



    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 5.12.3
    • Quick: Controls 2
    • None
    • Qt5.12.3 Android SDK 28, NDK 19c, Android 7,8,9.
    • Android


      Run the following on Android;

      import QtQuick 2.12
      import QtQuick.Controls 2.12
          visible: true
          onHeightChanged: console.log("#### THIS SHOULDNT HAPPEN WHEN TAPPING ON TEXT", height)
              anchors.fill: parent
              TextArea.flickable: TextArea 
                  wrapMode: TextArea.Wrap
                  selectByMouse: true
      "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris aliquet feugiat enim ut pulvinar. Nunc auctor eu nisl sit amet rutrum. Curabitur metus justo, euismod nec condimentum id, feugiat eu ipsum. Vivamus hendrerit tortor turpis, eu rhoncus enim blandit quis. Sed imperdiet velit at erat dapibus mollis. Aliquam condimentum tellus posuere congue finibus. Nunc tempus imperdiet felis sit amet tristique. Aliquam blandit, orci id elementum porttitor, elit libero laoreet ante, sed convallis massa erat quis velit. Vivamus sed risus ac metus auctor pulvinar ac non sem. Integer vel enim id est elementum consequat eu finibus leo. Praesent in ullamcorper leo. Donec suscipit eu orci in tempus. Nam hendrerit faucibus accumsan. Sed euismod in sapien nec luctus."

      Tapping anywhere on the text will cause ApplicationWindow.height to change and issue the message. This causes the most horrible screen flicker when trying to edit. Obviously made a lot worse when the app redraw is more complicated.

      Some clues:

      This does not happen if the text fills the screen! For example, copy and paste the text several times then try again and the flicker is gone, also the console.log message.

      Checked on Android 7,8 & 9. The same.


        Issue Links

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



              mitch_curtis Mitch Curtis
              jkj jkj yuio
              2 Vote for this issue
              5 Start watching this issue



                Gerrit Reviews

                  There are no open Gerrit changes