Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Quick Widget hangs on Android due to TextField



  • hello everybody.
    Now i'm developing an QML application for Android device and i have a problem.
    After clicking on TextField Virtual Keyboard appear and it is possible to input the text but after moving app to background and then move it back to foreground , app get freezes . What is realy weird that on Android 5.1 it works fine but on higer version it doesn't work

    Code Example
    
    Window {
        visible: true
        width: 640
        height: 480
        title: qsTr("Hello World")
    
        TextField {
            id: passwordInput
            anchors.left: parent.left
            anchors.right: parent.right
            anchors.top: parent.top
            color: "red"
            font.family: "SFProText-Medium"
            placeholderText: "Password"
        }
    
        Rectangle {
            anchors.bottom: parent.bottom
            anchors.left: parent.left
            anchors.right: parent.right
            height: 1
            opacity: 0.2
            color: "black"
        }
    }
    

  • Qt Champions 2018

    That's a 5.12.0 bug : https://bugreports.qt.io/browse/QTBUG-72101
    You can use an older version, wait for the 5.12.1 release or patch and build your own Qt version.



  • @GrecKo thanks for answering


Log in to reply