Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt.inputMethod.show() on Android doesn't work
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 712 Views 1 Watching
  • 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 Offline
    P Offline
    philippeb8
    wrote on 17 Sept 2015, 02:06 last edited by philippeb8
    #1

    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
    0

    1/1

    17 Sept 2015, 02:06

    • Login

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