Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Wayland compositor not setting focus for TextInputManager
Qt 6.11 is out! See what's new in the release blog

Wayland compositor not setting focus for TextInputManager

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 289 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.
  • C Offline
    C Offline
    cl-sharko
    wrote on last edited by
    #1

    Qt version 5.15.1

    How can I get client application window activated (focused?) in WaylandCompositor programmatically?

    I tried to do

    WaylandQuickItem {
      ...
      focus: true
    }
    

    and

    WaylandQuickItem {
      ...
      onSurfaceChanged: {
        if (surface) {
          takeFocus();
        }
    }
    

    but surface still requires additional click/touch to activate InputPanel.

    When clicking surface once I get the active flag change to true in my application. Also this is not happening with focus: true.

    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