Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
doc_src_qalgorithms.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4
#
include
<
QList
>
5
#
include
<
QColor
>
6
7
void
example
()
8
{
9
//! [1]
10
QList<QColor *> list;
11
list.append(
new
QColor(Qt::blue));
12
list.append(
new
QColor(Qt::yellow));
13
14
qDeleteAll(list.begin(), list.end());
15
list.clear();
16
//! [1]
17
}
example
void example()
[5]
Definition
doc_src_groups.cpp:7
qtbase
src
corelib
doc
snippets
code
doc_src_qalgorithms.cpp
Generated on
for Qt by
1.14.0