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
gradientcreationsnippet.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
<
QBrush
>
5
6
namespace
gradientcreationsnippet
{
7
8
void
wrapper
() {
9
10
//! [0]
11
QRadialGradient gradient(50, 50, 50, 50, 50);
12
gradient.setColorAt(0, QColor::fromRgbF(0, 1, 0, 1));
13
gradient.setColorAt(1, QColor::fromRgbF(0, 0, 0, 0));
14
15
QBrush brush(gradient);
16
//! [0]
17
18
}
// wrapper
19
20
}
// gradientcreationsnippet
gradientcreationsnippet
Definition
gradientcreationsnippet.cpp:6
gradientcreationsnippet::wrapper
void wrapper()
Definition
gradientcreationsnippet.cpp:8
qtbase
src
gui
doc
snippets
brush
gradientcreationsnippet.cpp
Generated on
for Qt by
1.14.0