1
/****************************************************************************
3
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
4
** Contact: http://www.qt-project.org/legal
6
** This file is part of the documentation of the Qt Toolkit.
8
** $QT_BEGIN_LICENSE:FDL$
9
** Commercial License Usage
10
** Licensees holding valid commercial Qt licenses may use this file in
11
** accordance with the commercial license agreement provided with the
12
** Software or, alternatively, in accordance with the terms contained in
13
** a written agreement between you and Digia. For licensing terms and
14
** conditions see http://qt.digia.com/licensing. For further information
15
** use the contact form at http://qt.digia.com/contact-us.
17
** GNU Free Documentation License Usage
18
** Alternatively, this file may be used under the terms of the GNU Free
19
** Documentation License version 1.3 as published by the Free Software
20
** Foundation and appearing in the file included in the packaging of
21
** this file. Please review the following information to ensure
22
** the GNU Free Documentation License version 1.3 requirements
23
** will be met: http://www.gnu.org/copyleft/fdl.html.
26
****************************************************************************/
29
\title QtQuick Examples - Canvas
31
\brief This is a collection of QML Canvas examples.
32
\image qml-canvas-example.png
33
\ingroup qtquickexamples
35
This is a collection of small QML examples relating to Canvas item. Each example is
36
a small QML file emphasizing a particular element or feature.
38
Red heart demonstrates using a bezierCurve API to stroke and fill a red heart.
39
\snippet quick/canvas/bezierCurve/bezierCurve.qml 0
41
Talk bubble demonstrates using a quadraticCurveTo API to stroke and fill a customized talk bubble:
42
\snippet quick/canvas/quadraticCurveTo/quadraticCurveTo.qml 0
43
This example also demonstrates the fillText API:
44
\snippet quick/canvas/quadraticCurveTo/quadraticCurveTo.qml 1
46
Squircle demonstrates using a collection of simple moveTo/lineTo path APIs to draw a smooth squircle.
48
Rounded rectangle demonstrates using a collection if lineTo/arcTo path APIs to draw a rounded rectangle.
50
Smile face demonstrates using several complex path APIs to draw an fill a smile face.
52
Clip demonstrates using clip API to clip a given image.
53
\snippet quick/canvas/clip/clip.qml 0
55
Tiger demonstrates using SVG path API to draw a tiger with a collection of SVG path strings.
56
\snippet quick/canvas/tiger/tiger.qml 0