[Interest] Virtual keyboard hides input field

Axel Spoerl axel.spoerl at qt.io
Sun Jul 28 11:45:58 CEST 2024


Hello Sley,

the attached code contains neither virtual keyboard, nor focus handling.
It's not clear, where the virtual keyboard comes into play.
Just by guessing: The problem could be in the custom type InputField, which is not attached.
Have a look at the FocusScope QML type. In essence, a focus scope has to be defined for the input field.
The virtual keyboard needs to be inside that focus scope, with its "focus" property set to "true".

If that doesn't solve the problem, post a topic in https://forum.qt.io<https://forum.qt.io/>
Reduce the reproducer to the bare (yet compilable) mimimum, and preferably eliminate the custom type.
Paste the code directly to the forum, using the code formatting tags.
Please also specify the Qt version used.

Cheers
Axel

________________________________
Von: Interest <interest-bounces at qt-project.org> im Auftrag von Sley HORTES <sleyhortes13 at gmail.com>
Gesendet: Samstag, 27. Juli 2024 09:26
An: interest at qt-project.org <interest at qt-project.org>
Betreff: [Interest] Virtual keyboard hides input field

Hello Everyone!!

I have been trying to create a sign up window for a chat app using QML. The problem is When there’s a focus on an input field object, the virtual keyboard hides its visibility. I would like to know how to remediate to it.
Any thought Please ?

Here is a Module I had created. The **InputField** type is actually a custom module too.

<https://drive.google.com/file/d/1c8FwMq9imvfNd9DHoVaKIaMNGAaxTG6G/view?usp=drivesdk>
[Text file]
SignupWindow.qml.txt





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20240728/fc9e1515/attachment.htm>


More information about the Interest mailing list