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 Virtual Keyboard For Qt Widget Project Running Under Weston Wayland Desktop

Qt Virtual Keyboard For Qt Widget Project Running Under Weston Wayland Desktop

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 233 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.
  • G Offline
    G Offline
    Guninia
    wrote on 22 Nov 2024, 09:27 last edited by Guninia
    #1

    I've built a testing project which contains a MainWindow and a popup dialog with QLineEdit.
    After running weston (ver: 13.0.0), which is launched with desktop shell and DRM backend, in Ubuntu 24.04 server, I run the testing project with QT_QPA_PLATFORM=wayland, and everything goes fine.
    When I click the QLineEdit to bring up the virtual keyboard, it seems that the keyboard takes the focus hense the QLineEdit loses the focus and dismisses the keyboard immediately.
    This situation never happens when I develop in another host running Ubuntu Desktop environment.
    Does anyone know how to solve this issue or why it happen?

    Thanks.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Masami22
      wrote on 11 Jan 2025, 02:54 last edited by
      #2

      I got the same situation when I run the same app in different weston version platform.
      weston (ver: 10.0.0) is fine ,but weston (13.0.1) can not bring up the virtual keyboard.
      I try to overwirte the QPlatformInputContext Class , when I show the virtual keyboard , it will always trigger the override
      function—setFocusObject, no matter what focus policy I set up at the virtual keyboard.
      I check the Class QApplication function—notify , the focus object will change when the virtual keyboard show.
      It seems related to the new version of weston.
      My solution is downgrade the weston to lower version (before the 13.0.0)
      I hope it can help you.

      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