Qt 6.4.1 WebAssembly - TextInput/TextField not receiving keyboard input
-
I've recently built an application using WebAssembly and Qt 6.4.1 (emscripten 3.1.14). The user is supposed to be able to type custom text input. However, neither TextField nor TextInput accepts any keyboard input, besides copying and pasting a complete input from somewhere else. I am attaching a topic regarding the issue in Qt 5, as it seems to be still unresolved.
Re: TextInput not editable in browser
When compiling the desktop version, everything works as a charm. I am using macOS 12.6.
-
I'm having the same issue.
If I compile my app for desktop, my text fields are configured to show a blinking text cursor. However, it doesn't show any cursor at all on WebAssembly. It looks like the text fields don't get any focus.Edit: It will probably be resolved in Qt 6.5 (https://bugreports.qt.io/browse/QTBUG-105582)
-
I've recently built an application using WebAssembly and Qt 6.4.1 (emscripten 3.1.14). The user is supposed to be able to type custom text input. However, neither TextField nor TextInput accepts any keyboard input, besides copying and pasting a complete input from somewhere else. I am attaching a topic regarding the issue in Qt 5, as it seems to be still unresolved.
Re: TextInput not editable in browser
When compiling the desktop version, everything works as a charm. I am using macOS 12.6.
@Marcin22
Hi I am facing the same problem.
I am using qt6.6.0.
The problem is that if I put a textfield or textinput that have more than 3(not sure the exact number) parents, the textfield do not allow to be editable.example:
Edit: I test again and it happen if the textfield is inside a frame. You can test it here
-
@Marcin22
Hi I am facing the same problem.
I am using qt6.6.0.
The problem is that if I put a textfield or textinput that have more than 3(not sure the exact number) parents, the textfield do not allow to be editable.example:
Edit: I test again and it happen if the textfield is inside a frame. You can test it here
-
@Mesrine The problem with your code is that you're using
anchors
in a layout. If you remove theanchors.centerIn: parent
from theColumnLayout
, it'll work.@adazem009 The textfield inside a column layout works, inside a frame it does not.
There is nothing wrong on using anchors to set the position of the layout. One can not use anchors to set the position of the layout items. As far as i understand. -
Just found here after tearing my hair out with this exact problem using Qt 6.5.1
It's there even in the LTS T_T