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. QT virtual keyboard on embedded linux target

QT virtual keyboard on embedded linux target

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 856 Views 2 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.
  • A Offline
    A Offline
    arunshah
    wrote on last edited by
    #1

    I ported the virtual keyboard example on an embedded linux target. But the keystrokes are not populated to the Text fields. On logging; I am getting the error "input method is not set" when I try to use qt virtual keyboard.

    Note : I had set
    qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));

    before launching the QGuiApplication.

    Any pointers on what could be the issue.

    1 Reply Last reply
    1
    • Aleksey_KA Offline
      Aleksey_KA Offline
      Aleksey_K
      wrote on last edited by
      #2

      Same bug as well as many people for years!!!

      Google search

      Any solution yet?!

      1 Reply Last reply
      0
      • Aleksey_KA Offline
        Aleksey_KA Offline
        Aleksey_K
        wrote on last edited by
        #3

        Found the solution. Following workaround works for me:

        TextArea {
            onActiveFocusChanged: {
                if(activeFocus) {
                    Qt.inputMethod.update(Qt.ImQueryInput)
                }
            }
        }
        

        Works with other controls as well.

        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