[Android-development] Press-and-hold on Android
Paul Olav Tvete
paul.tvete at digia.com
Mon Jun 10 11:08:37 CEST 2013
Hi all,
I am sorry for bringing this up at the very last moment, but there are several
bugreports relating to the mapping from press-and-hold to right-mouse-button
press. This logic is implemented in the android plugin, and there is no way to
disable it for applications that need to handle long presses in a different
way.
Currently this breaks both Qt Quick 1 and 2:
https://bugreports.qt-project.org/browse/QTBUG-30749
https://bugreports.qt-project.org/browse/QTBUG-31331
We need long press logic both for Android and for iOS, but the current
solution is not complete. We definitely do not have time to add new API for
this, so my solution is:
1. Disable (or remove) the long press code for the 5.1 release. This should be
safe, since the code is well isolated.
2. Add a proper long press API to Qt for 5.2, in cooperation with the iOS
team. As part of this, we can add an opt-in option to map long press to right-
mouse-button press.
I really don't want to rock the boat this close to the release, but it will be
worse if people start depending on the current behaviour, and we break it in
the next release.
- Paul
More information about the Android-development
mailing list