Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7.3, 6.8.1
-
-
d908e0439 (dev), 65e9eca63 (6.9), a3203542d (6.8)
Description
Using Qt 6.7.3 or 6.8.1, events from a mouse or trackpad on Android are not handled correctly in QML. This works correctly in Qt 6.5.6 and 6.6.3. This can be reproduced by connecting a USB or Bluetooth mouse to any Android device, or using the built-in trackpad on Chromebooks.
For example, the following behavior is observed when interacting with a Button element using a mouse/trackpad:
- The onClicked handler is never triggered
- Clicking the button will permanently put it into a highlighted UI state until another element is clicked (i.e. the mouse-up event does not un-highlight the button)
- Moving the cursor outside the button bounds will un-highlight a clicked/highlighted button, and moving the cursor back inside its bounds will highlight it again
Attached is a demo video showing the above points.
The following simple QML can be used to reproduce the above:
ColumnLayout { Button { text: "Button 1" onClicked: label.text = "Clicked 1 " + (new Date()).toLocaleTimeString(); } Button { text: "Button 2" onClicked: label.text = "Clicked 2 " + (new Date()).toLocaleTimeString(); } Text { id: label text: "" } }
Attachments
Issue Links
- is duplicated by
-
QTBUG-130297 Cannot click buttons in ChromeOS
-
- Closed
-
- relates to
-
QTBUG-99106 QMouseEvent always generates Qt::LeftButton events on Android, even on right mouse click
-
- Closed
-