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

a serious problem on Android, which will cause the application crashed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P1: Critical
    • None
    • 5.14, 6.4.2, 5.15
    • None
    • JDK8/JDK11 + NDK23~NDK28 + Gradle5~Gradle7
    • Android

    Description

      All text input controls of QML have a serious problem on Android, which will cause the application crashed: after entering the application, click the text input box, then click the Backspace of the keyboard, then click the Back key of the phone twice, then click the text input box again, click the Backspace of the keyboard again, and then click the Back key of the phone again, and the application will flash back (Fatal 6 or Fatal 11 will be generated during debugging), It exists in all Qt5.14, Qt5.15 and Qt6 versions, and has tested JDK8, 11, and NDK23~28, Gradle 5~7, and Android 6~12. This problem exists: relevant code:

       

      import QtQuick 2.14
      import QtQuick.Controls 2.14
      import QtQuick.Window 2.14
      
      Window {
          id: rootWindow
      
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          Column {
              anchors.fill: parent
              focus: true
      
              TextInput {
                  width: parent.width
      
                  Keys.onEscapePressed: {
                      event.accepted = true;
                  }
                  Keys.onBackPressed: {
                      event.accepted = true;
                  }
              }
      
              Keys.onEscapePressed: {
                  event.accepted = true;
              }
              Keys.onBackPressed: {
                  event.accepted = true;
              }
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              leamus 深林 孤鹰
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes