qt5base-lts/examples
Marc Mutz c6a3507de2 SecureUDPServer example: use std::unique_ptr instead of QSharedPointer
The only reason the code used QSharedPointer is that it used QVector
to hold a collection of them, and QVector infamously cannot hold
move-only types such as std::unique_ptr.

Fix by using std::vector<std::unique_ptr> instead. Also, pass the
objeccts into non-sink functions by raw pointer instead of shared_ptr.

As a drive-by, replace clear-following-iterate by the for-exchanged
pattern.

Change-Id: I605fbb98af840c1b93eab9e65c07defd6e7b39e1
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2019-05-15 14:40:23 +02:00
..
aggregate install a sane top-level examples.pro file 2012-12-11 13:37:57 +01:00
corelib Prefix textstream operators with Qt:: 2019-05-02 11:52:02 +00:00
dbus Examples: cleanup foreach usage 2019-02-02 12:49:19 +00:00
embedded Remove usages of Q_OS_WINCE 2019-05-23 13:51:05 +02:00
gui Take device-pixel-ratio into account in openglwindow example 2018-11-20 19:51:12 +00:00
network SecureUDPServer example: use std::unique_ptr instead of QSharedPointer 2019-05-15 14:40:23 +02:00
opengl examples: port away from Java-style iterators 2019-05-23 17:30:51 +02:00
qmake Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
qpa Examples: cleanup foreach usage 2019-02-02 12:49:19 +00:00
qtconcurrent examples: port away from Java-style iterators 2019-05-23 17:30:51 +02:00
qtestlib Merge remote-tracking branch 'origin/5.6' into 5.7 2016-05-06 15:36:44 +02:00
sql RelationalTableModel example: use std::unique_ptr instead of QScopedPointer 2019-05-15 11:03:52 +02:00
vulkan Fix use of qrand/qsrand in an example 2019-04-01 14:39:53 +00:00
widgets Icons example: use std::unique_ptr instead of QScopedPointer 2019-05-15 11:03:53 +02:00
xml Prefix textstream operators with Qt:: 2019-05-02 11:52:02 +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.