qt5base-lts/examples
Shawn Rutledge f931e5e72d add cross-platform tablet->mouse event synth; enable on Android
It's urgent to fix the issue that on Android, it became impossible
to interact with any widget or MouseArea which handles only mouse
events but not tablet events, using the stylus, because stylus events
are sent only as QTabletEvents.  Before 5.6 (change
01d78ba86a) they were sent as
touch events, and mouse events were synthesized from those.  Whereas
on other platforms, every QTabletEvent is followed by a synthesized
QMouseEvent.

This fix proceeds in the direction that event synthesis should be done
in cross-platform code so that platform plugins don't have to repeat it,
following the same pattern as for touch->mouse synthesis.  Just as
in that case, the application can disable it, and the platform plugin
can also report that it's unnecessary for Qt to do the synthesis
because the platform already does.

So QTBUG-51618 is fixed, but QTBUG-47007 requires us to remove the
tablet->mouse synthesis from all platform plugins, because the plugin
does not know whether the tablet event was accepted or not, so it does
not have enough information to decide whether to synthesize a mouse
event.  Synthesis has been unconditional until now, which contradicts
what the documentation says: the mouse event should be sent only if
the tablet event is NOT accepted.  We can now gradually make this
promise come true.

[ChangeLog][QtCore][Tablet support] A synthetic mouse event will
no longer be sent after every QTabletEvent, only after those which are
not accepted (as documented).

Task-number: QTBUG-47007
Task-number: QTBUG-51618
Change-Id: I99404e0c2b39bbca4377be6fd48e0c6b20338466
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
2016-04-08 19:33:28 +00:00
..
aggregate install a sane top-level examples.pro file 2012-12-11 13:37:57 +01:00
corelib fix namespaced build 2016-04-05 14:08:30 +00:00
dbus Unify license header usage. 2016-03-29 10:20:03 +00:00
embedded Updated license headers 2016-01-21 18:55:32 +00:00
gui Unify license header usage. 2016-03-29 10:20:03 +00:00
network Unify license header usage. 2016-03-29 10:20:03 +00:00
opengl Unify license header usage. 2016-03-29 10:20:03 +00:00
qmake Unify license header usage. 2016-03-29 10:20:03 +00:00
qpa Unify license header usage. 2016-03-29 10:20:03 +00:00
qtconcurrent Unify license header usage. 2016-03-29 10:20:03 +00:00
qtestlib Unify license header usage. 2016-03-29 10:20:03 +00:00
sql Unify license header usage. 2016-03-29 10:20:03 +00:00
touch Unify license header usage. 2016-03-29 10:20:03 +00:00
widgets add cross-platform tablet->mouse event synth; enable on Android 2016-04-08 19:33:28 +00:00
xml Merge remote-tracking branch 'origin/5.6' into 5.7 2016-04-07 10:47:20 +02:00
examples.pro Move Qt Core examples under a common subdirectory 2014-10-17 14:57:13 +02:00
README Remove more references to demos. 2011-07-08 15:36:26 +02:00

Qt is supplied with a number of example applications that have been
written to provide developers with examples of the Qt API in use,
highlight good programming practice, and showcase features found in each of
Qt's core technologies.


Documentation for examples can be found in the Examples section
of the Qt documentation.