Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-48702

Android: Stylus events are not firing in QT application running on Android

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.6.0 RC
    • 5.3.1
    • QPA
    • None
    • Android 4.4.4
    • Android

      Compiled sample Scribble app with Android for armeabi. App running fine on Android (4.4.4) tablet. Finger movements are firing mouse press/move/release events; but stylus MOVE inputs are not firing any events in Qt. Press and Release are firing.

      Additionally,
      In MouseMoveEvetns also, 'Historical Values' are not coming to Qt. Mean, when we draw a curve fast, curve doesn't appear smooth; squaring happens at multiple points, as only the getX and getY of dispatchTouchEvent is transferred to Qt.

      Fix applied:
      1.Added a java class, did override of dispatchTouchEvent. Called a Qt slot when getToolType == TOOL_TYPE_STYLUS.

      2. By calling the Qt function for all historical values (getHistoricalX & getHistoricalY), able to get a smoother curve in scribble.

      3. Request to add other major parameters of the MotionEvent such as stylusPressure, getToolType, Hover, Multitouch; else programming for android will not yield the right results.

      Waiting for the 'right solution'

      Thanks.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            abygm Aby Mathews
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes