summaryrefslogtreecommitdiffstats
path: root/examples/widgets/doc/src/pathstroke.qdoc
blob: bc4001ebb5e3d2acde54d6a898840211bb65cb5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only

/*!
    \example painting/pathstroke
    \title Path Stroking
    \examplecategory {Graphics}
    \ingroup examples-painting
    \brief The Path Stroking example shows various types of pens that
    can be used with QPainter.

    \brief In this example we show some of the various types of pens that can be
    used in Qt.

    \image pathstroke-demo.png

    Qt defines cap styles for how the end points are treated and join
    styles for how path segments are joined together. A standard set of
    predefined dash patterns are also included that can be used with
    QPen.

    In addition to the predefined patterns available in
    QPen we also demonstrate direct use of the
    QPainterPathStroker class which can be used to define
    custom dash patterns. You can see this by enabling the
    \e{Custom Pattern} option.
*/