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 Wayland multi-process, can't acquire inputMethodHints of QWaylandQuickShellSurfaceItem's focused input
Forum Updated to NodeBB v4.3 + New Features

Qt Wayland multi-process, can't acquire inputMethodHints of QWaylandQuickShellSurfaceItem's focused input

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

    Hey there,

    I'm using wayland compositor in multi-process mode.

    I want my compositor to access inputMethodHints of another process's focused input (i.e. TextInput).
    Within compositor I've got focused QWaylandQuickShellSurfaceItem of that process.

    To achieve that I'm doing following:

    QInputMethodQueryEvent imQueryEvent(Qt::InputMethodQueries(Qt::ImHints));
    QGuiApplication::sendEvent(waylandShellSurface, &imQueryEvent);
    auto inputMethodHints = Qt::InputMethodHints(imQueryEvent.value(Qt::ImHints).toInt());
    

    But as it turns out, imQueryEvent event hasn't been sent over wayland protocol, so my inputMethodHints is always equal to QFlags<Qt::InputMethodHint>(ImhNone).
    Is there any other way to request focused input of QWaylandQuickShellSurfaceItem or to fix behavior of QGuiApplication::sendEvent to achieve that?

    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