Qt5 qtvirtualkeyboard isn't working On colibri8

Hi,everyone.

I’m running a virtual keyboard project in the qt5 sample.

The problem is that the keyboard appears briefly and then disappears.

There are no errors, so I don’t know the cause.

Does anyone know anything about this?

regard
hiroki.

Hi,everyone.
Currently, there is qlineedit in the dialog, but I found that if you hit it repeatedly the moment you open it, the keyboard remains and you can type only one character. Problem with focus?

thanks

Hi @iino,

Qt5 should have an example for the virtual keyboard. It is for a QML based GUI, but if this example would be working with your board, the problem will be probably in the implementation of your sample program.
https://code.qt.io/cgit/qt/qtvirtualkeyboard.git/tree/examples/virtualkeyboard/basic?h=5.15
TBH, I have never used QtVirtualKeyboard with ‘standard’ UI widgets so I can just redirect you to this example. The virtual keyboard has a dedicated button for hiding. In case of QML, the keyboard should not hide when the widget looses the focus (tested). So, I would check how the visibility (and the ‘z’ coordinate?) of the input panel is handled in your case.

Plus, I would recommend you to create a thread on the Qt official support forum, you will definitely get better support there.

Hi, @John1

Plus, I would recommend you to create a thread on the Qt official support forum, you will definitely get better support there.

I see.

I hope you get some other replies while I’m waiting.

Thanks,
Hiroki

Hi @iino, can you send us some sample code to reproduce the issue quicker? Can one reproduce it with this? basic « virtualkeyboard « examples - qt/qtvirtualkeyboard.git - QtQuick virtual keyboard

@jorge.tx kindly check this.

Alvaro.

Hi, @alvaro.tx

Can one reproduce it with this?

Yes
If you use that code, you’ll see the keyboard for a moment, and then the program will crash.
The SDK uses tdx-reference-multimedia-image.

Thanks,
Hiroki

Hi @iino

We have checked and this seems to be a bug born from some incompatibilities between Qt and Wayland, as seen here in this official Qt bug report:
https://bugreports.qt.io/browse/QTBUG-94994

You need to use a different virtual keyboard compatible with Wayland as opposed to qtvirtualkeyboard from Qt, as this expects the zwp_text_input_manager_v2 protocol extension, while Weston uses zxdg_text_input_manager_v1

Kind regards,
Jorge

1 Like

Hi, @jorge.tx

Thank you for checking.

You need to use a different virtual keyboard compatible with Wayland as opposed to qtvirtualkeyboard from Qt, as this expects the zwp_text_input_manager_v2 protocol extension, while Weston uses zxdg_text_input_manager_v1

Does this mean it cannot be resolved?

regards,
Hiroki

@iino , yes, qtvirtualkeyboard is not compatible with Wayland/Weston.

Alvaro.

1 Like

@alvaro.tx
Thanks you for reply.
I understand.

Thanks,
Hiroki

Hi,

I just want to add that I have Colibri IMX8DX, BSP 5.7, Qt 5.15.9 via meta-qt5, Linux image derived from Toradex multimedia image (using its SDK too) and the qtvirtualkeyboard example from my post works as expected. Also using weston v9 with qtwayland.

The problem from cited bug report site refers to Boot2Qt demo app. I am not sure if it can be applied to Yocto too…

John

1 Like

Hi,

I have the same problem here with yocto build tdx-reference-mulitimedia-image for a qt application.
My hardware is Apalis i.MX8.

When i click the inputfield, keyboard is coming and disappearing suddenly.

the weston-info command give me the below details.

interface: 'zwp_input_panel_v1', version: 1, name: 22
interface: 'zwp_input_method_v1', version: 1, name: 23
interface: 'zwp_text_input_manager_v1', version: 1, name: 24
interface: 'xdg_wm_base', version: 3, name: 25
interface: 'wl_shell', version: 1, name: 26
interface: 'weston_desktop_shell', version: 1, name: 27
interface: 'weston_screenshooter', version: 1, name: 28

Is there any way to enable the qtvirtualkeyboard or any other virtual keyboard?

1 Like