qt5base-lts/examples
Volker Hilsheimer bcaff2b06f Remove QGuiAction again and split QAction implementation up instead
Duplicating the number of classes is a high price to pay to be able to
have some QAction functionality behave differently, or be only available
in widgets applications.

Instead, declare the entire API in QtGui in QAction* classes, and
delegate the implementation of QtWidgets specific functionality to
the private. The creation of the private is then delegated to the
Q(Gui)ApplicationPrivate instance through a virtual factory function.

Change some public APIs that are primarily useful for specialized tools
such as Designer to operate on QObject* rather than QWidget*. APIs that
depend on QtWidgets types have been turned into inline template
functions, so that they are instantiated only at the caller side, where
we can expect the respective types to be fully defined. This way, we
only need to forward declare a few classes in the header, and don't
need to generate any additional code for e.g. language bindings.

Change-Id: Id0b27f9187652ec531a2e8b1b9837e82dc81625c
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2020-03-29 11:18:57 +01:00
..
aggregate install a sane top-level examples.pro file 2012-12-11 13:37:57 +01:00
corelib Merge remote-tracking branch 'origin/5.15' into dev 2020-03-16 18:41:27 +01:00
dbus Regenerate examples 2020-02-04 18:50:39 +00:00
embedded Merge remote-tracking branch 'origin/5.15' into dev 2020-02-28 09:48:30 +01:00
gui Regenerate examples 2020-02-04 18:50:39 +00:00
network Merge remote-tracking branch 'origin/5.15' into dev 2020-03-04 14:39:18 +00:00
opengl Merge remote-tracking branch 'origin/5.15' into dev 2020-03-11 15:34:21 +01:00
qmake Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
qpa Merge remote-tracking branch 'origin/5.15' into dev 2020-03-11 15:34:21 +01:00
qtconcurrent Regenerate examples 2020-02-04 18:50:39 +00:00
qtestlib Regenerate examples 2020-02-04 18:50:39 +00:00
sql Merge remote-tracking branch 'origin/5.15' into dev 2020-03-11 15:34:21 +01:00
vulkan QtConcurrent::run: accept more then five function's arguments 2020-03-11 14:46:25 +01:00
widgets Remove QGuiAction again and split QAction implementation up instead 2020-03-29 11:18:57 +01:00
xml Merge remote-tracking branch 'origin/5.15' into dev 2020-03-04 14:39:18 +00:00
CMakeLists.txt cmake: add examples/opengl 2019-10-07 07:22:17 +00:00
examples.pro Doc: Move touch examples around so they get included in docs 2018-09-14 03:56:22 +00: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.