Qt 6.4.1 WebAssembly - TextInput/TextField not receiving keyboard input
-
wrote on 8 Dec 2022, 08:15 last edited by
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.
-
wrote on 28 Dec 2022, 18:20 last edited by adazem009
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)
-
wrote on 7 Apr 2023, 10:03 last edited by
I can confirm that keyboard input works in Qt 6.5. Please mark this question "solved" if it works for you in Qt 6.5.
-
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.
wrote on 5 May 2023, 15:14 last edited by Mesrine 5 Sept 2023, 15:06@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.wrote on 22 May 2023, 13:55 last edited by@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. -
wrote on 9 Aug 2023, 11:10 last edited by James A 8 Sept 2023, 11:41This post is deleted!
-
wrote on 13 Nov 2023, 06:31 last edited by
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