本页内容

QWaylandTextInputManager Class

提供在合成器中访问输入法的功能。更多...

标题: #include <QWaylandTextInputManager>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
在 QML 中: TextInputManager
继承自: QWaylandCompositorExtensionTemplate

详细描述

QWaylandTextInputManager 对应于text_input_unstable_v2 扩展协议中的zwp_text_input_manager_v2 接口。

将其作为WaylandCompositor 的子类实例化,会将其添加到客户端可用的接口列表中。如果客户端与其建立绑定,则该接口将用于向该客户端传递文本输入。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.