qt6-bb10/examples/widgets/widgets
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
..
analogclock Unify license header usage. 2016-03-29 10:20:03 +00:00
calculator Unify license header usage. 2016-03-29 10:20:03 +00:00
calendarwidget Unify license header usage. 2016-03-29 10:20:03 +00:00
charactermap Unify license header usage. 2016-03-29 10:20:03 +00:00
codeeditor Unify license header usage. 2016-03-29 10:20:03 +00:00
digitalclock Unify license header usage. 2016-03-29 10:20:03 +00:00
elidedlabel Unify license header usage. 2016-03-29 10:20:03 +00:00
groupbox Unify license header usage. 2016-03-29 10:20:03 +00:00
icons Unify license header usage. 2016-03-29 10:20:03 +00:00
imageviewer Unify license header usage. 2016-03-29 10:20:03 +00:00
lineedits Unify license header usage. 2016-03-29 10:20:03 +00:00
mousebuttons Unify license header usage. 2016-03-29 10:20:03 +00:00
movie Unify license header usage. 2016-03-29 10:20:03 +00:00
scribble Unify license header usage. 2016-03-29 10:20:03 +00:00
shapedclock Unify license header usage. 2016-03-29 10:20:03 +00:00
sliders Unify license header usage. 2016-03-29 10:20:03 +00:00
spinboxes Unify license header usage. 2016-03-29 10:20:03 +00:00
styles Unify license header usage. 2016-03-29 10:20:03 +00:00
stylesheet Unify license header usage. 2016-03-29 10:20:03 +00:00
tablet add cross-platform tablet->mouse event synth; enable on Android 2016-04-08 19:33:28 +00:00
tetrix Unify license header usage. 2016-03-29 10:20:03 +00:00
tooltips Unify license header usage. 2016-03-29 10:20:03 +00:00
validators Unify license header usage. 2016-03-29 10:20:03 +00:00
wiggly Unify license header usage. 2016-03-29 10:20:03 +00:00
windowflags Unify license header usage. 2016-03-29 10:20:03 +00:00
README Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00
widgets.pro Fix out-of-tree compilation of widget examples 2014-02-11 12:35:03 +01:00

README

Qt comes with a large range of standard widgets that users of modern
applications have come to expect.

You can also develop your own custom widgets and controls, and use them
alongside standard widgets.

It is even possible to provide custom styles and themes for widgets that can
be used to change the appearance of standard widgets and appropriately
written custom widgets.


Documentation for these examples can be found via the Examples
link in the main Qt documentation.