Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
5.2.0, 5.3.0 Beta1
-
Android 4.3 on Samsung Galaxy Note 3,
Android 4.2.2 on Samsung Galaxy Note 8.0 (GT-N5110)
Android 4.3 on Samsung Galaxy Note 10.0 (GT-N8010)
-
-
50cf698b76bd140a4ada4058f9abbee837289a75
Description
In a widget-based app, hovering with the pen over the screen created a lot of stack overflows. The reason was that in src/android/jar/src/org/qtproject/qt5/android/QtSurface.java, dispatchHoverEvent() is called when hovering, and in this method the first method invocation on the m_accessibilityDelegate returned false. The second method invocation there then happened on dispatchHoverEvent() of the same object, leading to endless recursion. I don't know what this is supposed to do, but as a temporary fix, the three lines doing the endless recursion can be commented out:
// SurfaceView view = (SurfaceView) this; // Method dispHoverView = view.getClass().getMethod("dispatchHoverEvent", MotionEvent.class); // return (Boolean) dispHoverView.invoke(view, event);
The pen seems to work fine in the "Qt5 Everywhere" app I downloaded from the Google Play, so it seems to be widget-related.
(Second issue from original report moved to QTBUG-38379.)
Attachments
Issue Links
- duplicates
-
QTBUG-38905 EXCEPTION in dispatchHoverEvent on Android
- Closed
- relates to
-
QTBUG-38379 Android: No move events from Galaxy Note SPen in widgets app
- Closed