Debian Codegraph @

tests/manual/graphicaleffects5/LinearGradientEffect.qml

raw
1 // Copyright (C) 2020 The Qt Company Ltd.
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4 import QtQuick
5 import Qt5Compat.GraphicalEffects
6
7 Item {
8 LinearGradient {
9 anchors.fill: parent
10 start: Qt.point(0, 0)
11 end: Qt.point(0, height)
12 gradient: Gradient {
13 GradientStop { position: 0.0; color: "white" }
14 GradientStop { position: 1.0; color: "black" }
15 }
16 }
17 }