qt5base-lts/examples
Rym Bouabid b956fec7ee Remove Custom Type Example and Custom Type Sending Example
The whole Q_DECLARE_METATYPE part is superfluous in these two examples,
as QVariant works with any type as long as it is copy-constructible.
And QVariant will call the equivalent of qRegisterMetaType, so that
doesn't need to happen, either.
Showing how to integrate the type with qDebug is fine in theory, but
also a repetition of content that can be found in other places.

Given that there isn't much else being shown in these two examples, it's
better to remove them from examples and move them to manual tests.

Some parts of "Custom Type Example" were used as snippets in other
documentations under qtbase/src/corelib. So, they were added in
customtypeexample.cpp file in the snippets folder.

Fixes: QTBUG-117001
Pick-to: 6.6 6.5
Change-Id: I45b16338912e3f7394cbb5169642bd31af32d5e1
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2023-10-04 21:04:45 +02:00
..
aggregate
corelib Remove Custom Type Example and Custom Type Sending Example 2023-10-04 21:04:45 +02:00
dbus Exclude some examples from Android build 2023-08-28 16:00:45 +03:00
embedded Examples: Remove unnecessary Q_INIT_RESOURCE calls 2023-06-08 16:15:02 +00:00
gui Doc: Add \examplecategory to qtgui 2023-08-28 13:49:36 +02:00
network Move rsslisting documentation to common dir 2023-09-21 19:29:20 +00:00
opengl hellogl2 example: Decouple mainwindow from window 2023-09-18 22:45:36 +02:00
qmake examples: port qmake examples to new connection style 2022-12-21 22:52:17 +02:00
qtconcurrent Doc: Add \examplecategory for qtconcurrent 2023-09-07 15:05:04 +02:00
qtestlib Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
sql examples/: compile with QT_NO_CONTEXTLESS_CONNECT 2023-09-08 19:17:36 +03:00
vulkan examples/: compile with QT_NO_CONTEXTLESS_CONNECT 2023-09-08 19:17:36 +03:00
widgets Move Calendar Widget Example to UI Components category 2023-09-27 08:31:39 +02:00
xml Add missing \l to DOM bookmarks example 2023-07-25 12:31:04 +02:00
CMakeLists.txt examples/: compile with QT_NO_CONTEXTLESS_CONNECT 2023-09-08 19:17:36 +03:00
examples.pro Move qpa examples to manual tests 2023-06-26 20:47:45 +02:00
README

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.