Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
brush.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
#
include
<
QLinearGradient
>
4
5
namespace
brush
{
6
void
wrapper
() {
7
8
9
//! [0]
10
QLinearGradient linearGrad(QPointF(100, 100), QPointF(200, 200));
11
linearGrad.setColorAt(0, Qt::black);
12
linearGrad.setColorAt(1, Qt::white);
13
//! [0]
14
15
16
//! [1]
17
QRadialGradient radialGrad(QPointF(100, 100), 100);
18
radialGrad.setColorAt(0, Qt::red);
19
radialGrad.setColorAt(0.5, Qt::blue);
20
radialGrad.setColorAt(1, Qt::green);
21
//! [1]
22
23
}
// wrapper
24
}
// brush
brush
Definition
brush.cpp:5
brush::wrapper
void wrapper()
Definition
brush.cpp:6
qtbase
src
gui
doc
snippets
brush
brush.cpp
Generated on
for Qt by
1.18.0