Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt.inputMethod.show() on Android doesn't work

    Mobile and Embedded
    1
    1
    598
    Loading More Posts
    • 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.
    • P
      philippeb8 last edited by philippeb8

      Hi,

      I am trying to open the virtual keyboard on the Android using QML and TextInput with Qt.inputMethod.show() and it doesn't work. The onClicked is called properly but the VKB doesn't popup.

      My code is as follows:
      TextInput {
      anchors.fill: parent
      id: chatEdit
      focus: true
      wrapMode: TextEdit.Wrap
      activeFocusOnPress: false
      MouseArea {
      anchors.fill: parent
      onClicked: {
      chatEdit.forceActiveFocus()
      Qt.inputMethod.show()
      }
      onPressAndHold: Qt.inputMethod.hide()
      }
      }

      1 Reply Last reply Reply Quote 0
      • First post
        Last post