Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.3
Description
When running a Qt 6.8.x application that uses QQuickWidget to host QML content, TextField elements do not gain focus when tapped on a touchscreen device. This makes it impossible for users to interact with TextFields via touch input.
This issue does not occur:
- With other input components like Button or TextArea within the same QML content using QQuickWidget.
- In standalone QML applications (i.e., applications not using QQuickWidget).
- In applications built with Qt 5.15 using QQuickWidget (works as expected there).
Steps to Reproduce:
- Build and run the application on a touchscreen-enabled device
- Tap on the TextField inside the application window.
Expected Result:
The TextField should gain focus and the virtual keyboard (if available) should appear.
Actual Result:
The TextField does not gain focus when tapped, and the virtual keyboard does not appear.
Tested Components:
- TextField: ❌ Does not work with QQuickWidget on touch.
- Button: ✅ Works as expected.
- TextArea: ✅ Works as expected.