From 99a6eb7b79471114705d7c68b0d5b388ea16ac03 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Wed, 8 Sep 2021 15:45:50 +0200 Subject: Support different text input protocols from clients and one compositor at same time. For compositor side, just need to have TextInputManager and QtTextInputMethodManager together. For client side, set QT_WAYLAND_TEXT_INPUT_PROTOCOL env to choose: * If the env is unset(empty) or invalid, it will search qt_text_input_method_v1 and zwp_text_input_v2 in order * Set as "qt_text_input_method_v1" or "zwp_text_input_v2" if compositor supports * Set as "zwp_text_input_v2;qt_text_input_method_v1" Change-Id: Ieec293ff412bf2d3e5ca9c69a951bfe1899cc808 Reviewed-by: Qt CI Bot Reviewed-by: Eskil Abrahamsen Blomfeldt --- examples/wayland/pure-qml/qml/main.qml | 1 + 1 file changed, 1 insertion(+) (limited to 'examples') diff --git a/examples/wayland/pure-qml/qml/main.qml b/examples/wayland/pure-qml/qml/main.qml index 5a0f324ec..837672764 100644 --- a/examples/wayland/pure-qml/qml/main.qml +++ b/examples/wayland/pure-qml/qml/main.qml @@ -79,6 +79,7 @@ WaylandCompositor { // Extension for Input Method (QT_IM_MODULE) support at compositor-side // ![text input] + TextInputManager {} QtTextInputMethodManager {} // ![text input] } -- cgit v1.2.3