b11cc1bd13887be717af21d618fc1c04721f74fb
[profile/ivi/qtbase.git] / examples / widgets / doc / src / pathstroke.qdoc
1 /****************************************************************************
2 **
3 ** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/legal
5 **
6 ** This file is part of the documentation of the Qt Toolkit.
7 **
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.
16 **
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.
24 ** $QT_END_LICENSE$
25 **
26 ****************************************************************************/
27
28 /*!
29     \example painting/pathstroke
30     \title Path Stroking
31
32     \brief In this example we show some of the various types of pens that can be
33     used in Qt.
34
35     \image pathstroke-demo.png
36
37     Qt defines cap styles for how the end points are treated and join
38     styles for how path segments are joined together. A standard set of
39     predefined dash patterns are also included that can be used with
40     QPen.
41
42     In addition to the predefined patterns available in
43     QPen we also demonstrate direct use of the
44     QPainterPathStroker class which can be used to define
45     custom dash patterns. You can see this by enabling the
46     \e{Custom Pattern} option.
47 */