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 Doesn't Know Which Item Is Focused

Qt Virtual Keyboard Doesn't Know Which Item Is Focused

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 427 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.
  • C Offline
    C Offline
    ccc888
    wrote on last edited by
    #1

    I'm developing a touch screen application with static build Qt 5.12.3. It runs on an Ubuntu OS replacing the desktop daemon(started by xinit).

    Earlier the virtual keyboard works fine, because I didn't build Qt with xinput . Now I need to enable multi-touch support so I rebuilt the Qt with '-xcb-xinput' option. The multi-touch works, however the VKB stopped working. No matter how I make the TextEdit/TextArea focus, the virtual keyboard (VKB) doesn't know which item is focused. Every time I press a key, I get 'no input method is set' warning. The text boxes actually have focus, I know this because if I type with a actual keyboard, the key got registered with no problem. Weird thing is, if I start the application inside a Ubuntu's desktop daemon-lightdm, this issue does not exist anymore.

    I have been working on this issue for several days, today I found out more about this issue. If I click the text box or the VKB with a physical mouse, then the VKB start to know which item has the focus, then it will function normally until I restart the application. It has to be a physical mouse clicked, a click/press on the touch screen does not do the trick.

    Could anyone help please?

    Thanks

    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