Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Quick Widget hangs on Android due to TextField

Quick Widget hangs on Android due to TextField

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 514 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TarasKH
    wrote on last edited by
    #1

    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"
        }
    }
    
    1 Reply Last reply
    0
    • GrecKoG Offline
      GrecKoG Offline
      GrecKo
      Qt Champions 2018
      wrote on last edited by
      #2

      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.

      T 1 Reply Last reply
      1
      • GrecKoG GrecKo

        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.

        T Offline
        T Offline
        TarasKH
        wrote on last edited by
        #3

        @GrecKo thanks for answering

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved