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

ApplicationWindow is resized/redrawn tapping on TextArea in Android

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Duplicate
    • Affects Version/s: 5.12.3
    • Fix Version/s: None
    • Component/s: Quick: Controls 2
    • Labels:
      None
    • Environment:
      Qt5.12.3 Android SDK 28, NDK 19c, Android 7,8,9.
    • Platform/s:
      Android

      Description

      Run the following on Android;

      import QtQuick 2.12
      import QtQuick.Controls 2.12
      
      ApplicationWindow 
      {
          visible: true
      
          onHeightChanged: console.log("#### THIS SHOULDNT HAPPEN WHEN TAPPING ON TEXT", height)
      
          Flickable
          {
              anchors.fill: parent
      
              TextArea.flickable: TextArea 
              {
                  wrapMode: TextArea.Wrap
                  selectByMouse: true
                  
                  text:
      "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.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              mitch_curtis Mitch Curtis
              Reporter:
              jkj jkj yuio
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes