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. How to send keyboard input under wayland?
Qt 6.11 is out! See what's new in the release blog

How to send keyboard input under wayland?

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

    Hello there! I'm trying to use WaylandSeat to send a keyboard input to the OS, running on Wayland (Fedora36 KDE spin in my case) but I don't understand how to use it:

    import QtWayland.Compositor 1.15
    ...
    	WaylandSeat{
    		id: wayland
    	}
    ...
    

    but running it gives me this error:

    QQmlApplicationEngine failed to load component
    <Unknown File>:23:2: Cannot create instance of WaylandSeat
    qt.qml.gc.statistics: Qml GC memory allocation statistics:
    qt.qml.gc.statistics: Total memory allocated: 0
    qt.qml.gc.statistics: Max memory used before a GC run: 0
    qt.qml.gc.statistics: Max memory used after a GC run: 0
    qt.qml.gc.statistics: Requests for different item sizes:
    qt.qml.gc.statistics:      < 32  bytes:  809
    qt.qml.gc.statistics:      < 64  bytes:  165
    qt.qml.gc.statistics:      < 96  bytes:  517
    qt.qml.gc.statistics:      < 128  bytes:  55
    qt.qml.gc.statistics:      < 160  bytes:  0
    qt.qml.gc.statistics:      < 192  bytes:  0
    qt.qml.gc.statistics:      >= 224  bytes:  43
    

    what am I missing?
    thanks in advance!

    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