![]() |
Qt 6.x
The Qt SDK
|
\inmodule QtGui More...
#include <qpen.h>
Public Types | |
typedef QPenPrivate * | DataPtr |
Public Member Functions | |
QPen () | |
Constructs a default black solid line pen with 1 width. | |
QPen (Qt::PenStyle) | |
Constructs a black pen with 1 width and the given style. | |
QPen (const QColor &color) | |
Constructs a solid line pen with 1 width and the given color. | |
QPen (const QBrush &brush, qreal width, Qt::PenStyle s=Qt::SolidLine, Qt::PenCapStyle c=Qt::SquareCap, Qt::PenJoinStyle j=Qt::BevelJoin) | |
Constructs a pen with the specified brush, width, pen style, cap style and join style. | |
QPen (const QPen &pen) noexcept | |
Constructs a pen that is a copy of the given pen. | |
~QPen () | |
Destroys the pen. | |
QPen & | operator= (const QPen &pen) noexcept |
Assigns the given pen to this pen and returns a reference to this pen. | |
QPen (QPen &&other) noexcept | |
void | swap (QPen &other) noexcept |
Qt::PenStyle | style () const |
Returns the pen style. | |
void | setStyle (Qt::PenStyle) |
[0] | |
QList< qreal > | dashPattern () const |
Returns the dash pattern of this pen. | |
void | setDashPattern (const QList< qreal > &pattern) |
Sets the dash pattern for this pen to the given pattern. | |
qreal | dashOffset () const |
Returns the dash offset for the pen. | |
void | setDashOffset (qreal doffset) |
Sets the dash offset (the starting point on the dash pattern) for this pen to the offset specified. | |
qreal | miterLimit () const |
Returns the miter limit of the pen. | |
void | setMiterLimit (qreal limit) |
Sets the miter limit of this pen to the given limit. | |
qreal | widthF () const |
Returns the pen width with floating point precision. | |
void | setWidthF (qreal width) |
Sets the pen width to the given width in pixels with floating point precision. | |
int | width () const |
Returns the pen width with integer precision. | |
void | setWidth (int width) |
Sets the pen width to the given width in pixels with integer precision. | |
QColor | color () const |
Returns the color of this pen's brush. | |
void | setColor (const QColor &color) |
Sets the color of this pen's brush to the given color. | |
QBrush | brush () const |
Returns the brush used to fill strokes generated with this pen. | |
void | setBrush (const QBrush &brush) |
Sets the brush used to fill strokes generated with this pen to the given brush. | |
bool | isSolid () const |
Returns true if the pen has a solid fill, otherwise false. | |
Qt::PenCapStyle | capStyle () const |
Returns the pen's cap style. | |
void | setCapStyle (Qt::PenCapStyle pcs) |
Sets the pen's cap style to the given style. | |
Qt::PenJoinStyle | joinStyle () const |
Returns the pen's join style. | |
void | setJoinStyle (Qt::PenJoinStyle pcs) |
Sets the pen's join style to the given style. | |
bool | isCosmetic () const |
Returns true if the pen is cosmetic; otherwise returns false . | |
void | setCosmetic (bool cosmetic) |
Sets this pen to cosmetic or non-cosmetic, depending on the value of cosmetic. | |
bool | operator== (const QPen &p) const |
Returns true if the pen is equal to the given pen; otherwise false. | |
bool | operator!= (const QPen &p) const |
Returns true if the pen is different from the given pen; otherwise false. | |
operator QVariant () const | |
Returns the pen as a QVariant. | |
bool | isDetached () |
DataPtr & | data_ptr () |
Friends | |
Q_GUI_EXPORT QDataStream & | operator>> (QDataStream &, QPen &) |
Reads a pen from the given stream into the given pen and returns a reference to the stream. | |
Q_GUI_EXPORT QDataStream & | operator<< (QDataStream &, const QPen &) |
Writes the given pen to the given stream and returns a reference to the stream. | |
Related Symbols | |
(Note that these are not member symbols.) | |
QDataStream & | operator<< (QDataStream &stream, const QPen &pen) |
Writes the given pen to the given stream and returns a reference to the stream. | |
QDataStream & | operator>> (QDataStream &stream, QPen &pen) |
Reads a pen from the given stream into the given pen and returns a reference to the stream. | |
\inmodule QtGui
The QPen class defines how a QPainter should draw lines and outlines of shapes.
A pen has a style(), width(), brush(), capStyle() and joinStyle().
The pen style defines the line type. The brush is used to fill strokes generated with the pen. Use the QBrush class to specify fill styles. The cap style determines the line end caps that can be drawn using QPainter, while the join style describes how joins between two lines are drawn. The pen width can be specified in both integer (width()) and floating point (widthF()) precision. A line width of zero indicates a cosmetic pen. This means that the pen width is always drawn one pixel wide, independent of the \l {QPainter::Coordinate Transformations}{transformation} set on the painter.
The various settings can easily be modified using the corresponding setStyle(), setWidth(), setBrush(), setCapStyle() and setJoinStyle() functions (note that the painter's pen must be reset when altering the pen's properties).
For example:
which is equivalent to
The default pen is a solid black brush with 1 width, square cap style (Qt::SquareCap), and bevel join style (Qt::BevelJoin).
In addition QPen provides the color() and setColor() convenience functions to extract and set the color of the pen's brush, respectively. Pens may also be compared and streamed.
For more information about painting in general, see the \l{Paint System} documentation.
qpen_default_join QPen::QPen | ( | ) |
QPen::QPen | ( | Qt::PenStyle | style | ) |
Constructs a black pen with 1 width and the given style.
Definition at line 246 of file qpen.cpp.
References Qt::black, Qt::NoPen, nullPenInstance, qpen_default_cap, qpen_default_join, QPenData, QBasicAtomicInteger< T >::ref(), QPenPrivate::ref, and style().
QPen::QPen | ( | const QColor & | color | ) |
Constructs a solid line pen with 1 width and the given color.
Definition at line 263 of file qpen.cpp.
References qpen_default_cap, qpen_default_join, QPenData, and Qt::SolidLine.
QPen::QPen | ( | const QBrush & | brush, |
qreal | width, | ||
Qt::PenStyle | style = Qt::SolidLine , |
||
Qt::PenCapStyle | cap = Qt::SquareCap , |
||
Qt::PenJoinStyle | join = Qt::BevelJoin |
||
) |
Constructs a pen with the specified brush, width, pen style, cap style and join style.
|
noexcept |
QPen::~QPen | ( | ) |
Destroys the pen.
Definition at line 312 of file qpen.cpp.
References QBasicAtomicInteger< T >::deref(), and QPenPrivate::ref.
|
inlinenoexcept |
QBrush QPen::brush | ( | ) | const |
Returns the brush used to fill strokes generated with this pen.
Definition at line 741 of file qpen.cpp.
References QPenPrivate::brush.
Referenced by QSvgStrokeStyle::apply(), QTextLayout::drawCursor(), QPaintEngineEx::drawPoints(), QPaintEngineEx::drawPoints(), QPainterPrivate::drawStretchedGradient(), QWin32PrintEngine::drawTextItem(), QCoreGraphicsPaintEngine::drawTextItem(), QX11PaintEnginePrivate::fillPolygon_dev(), is_pen_transparent(), QPaintEngineState::penNeedsResolving(), setBrush(), QPainter::setPen(), QPaintEngineEx::stroke(), QEmulationPaintEngine::stroke(), QPainter::strokePath(), QSvgNode::strokeWidth(), QWindowsDirect2DPaintEnginePrivate::updatePen(), QRasterPaintEngine::updatePen(), and QPdfEngine::updateState().
Qt::PenCapStyle QPen::capStyle | ( | ) | const |
Returns the pen's cap style.
Definition at line 662 of file qpen.cpp.
References QPenPrivate::capStyle.
Referenced by QPainterPathStroker::QPainterPathStroker(), QAlphaPaintEnginePrivate::addPenWidth(), QSvgStrokeStyle::apply(), QPaintEngine::drawLines(), QPainter::drawPoints(), QPaintEngineEx::drawPoints(), QPainter::drawPoints(), QPaintEngineEx::drawPoints(), QPainterPrivate::drawStretchedGradient(), QSvgPaintEngine::qpenToSvg(), QRasterPaintEnginePrivate::rasterizeLine_dashed(), QPainter::setPen(), QPdf::Stroker::setPen(), QCoreGraphicsPaintEnginePrivate::setStrokePen(), QPaintEngineEx::stroke(), QWin32PrintEnginePrivate::strokePath(), QWin32PrintEnginePrivate::strokePath_dev(), QWindowsDirect2DPaintEnginePrivate::updatePen(), and QX11PaintEngine::updatePen().
QColor QPen::color | ( | ) | const |
Returns the color of this pen's brush.
Definition at line 718 of file qpen.cpp.
References QPenPrivate::brush, and QBrush::color().
Referenced by QPdfEnginePrivate::addBrushPattern(), QTextDocumentLayoutPrivate::drawListItem(), QPainter::drawStaticText(), drawTextItemDecoration(), generateWavyPixmap(), hash(), QSvgPaintEngine::qpenToSvg(), QPainter::setPen(), QCoreGraphicsPaintEnginePrivate::setStrokePen(), QPaintEngineEx::stroke(), QPicturePaintEngine::updatePen(), QX11PaintEngine::updatePen(), and QPdfEngine::updateState().
qreal QPen::dashOffset | ( | ) | const |
Returns the dash offset for the pen.
Definition at line 506 of file qpen.cpp.
References QPenPrivate::dashOffset, and QPenData.
Referenced by QPainterPathStroker::QPainterPathStroker(), QCosmeticStroker::drawLine(), QCosmeticStroker::drawPath(), QPdf::generateDashes(), QDashedStrokeProcessor::process(), QSvgPaintEngine::qpenToSvg(), setDashOffset(), QPdf::Stroker::setPen(), QCoreGraphicsPaintEnginePrivate::setStrokePen(), QPaintEngineEx::stroke(), QWin32PrintEnginePrivate::strokePath(), QQuickShapeCurveRenderer::updateNode(), QWindowsDirect2DPaintEnginePrivate::updatePen(), and QRasterPaintEngine::updatePen().
Returns the dash pattern of this pen.
Definition at line 420 of file qpen.cpp.
References Qt::DashDotDotLine, Qt::DashDotLine, Qt::DashLine, dot(), Qt::DotLine, Qt::NoPen, QPenData, Qt::SolidLine, and QPenPrivate::style.
Referenced by QPainterPathStroker::QPainterPathStroker(), QSvgStrokeStyle::apply(), QPdf::generateDashes(), QDashedStrokeProcessor::process(), QSvgPaintEngine::qpenToSvg(), QRasterPaintEnginePrivate::rasterizeLine_dashed(), setDashOffset(), QPdf::Stroker::setPen(), QCoreGraphicsPaintEnginePrivate::setStrokePen(), QPaintEngineEx::stroke(), QWin32PrintEnginePrivate::strokePath(), QQuickShapeCurveRenderer::updateNode(), QWindowsDirect2DPaintEnginePrivate::updatePen(), and QRasterPaintEngine::updatePen().
bool QPen::isCosmetic | ( | ) | const |
Returns true
if the pen is cosmetic; otherwise returns false
.
Cosmetic pens are used to draw strokes that have a constant width regardless of any transformations applied to the QPainter they are used with. Drawing a shape with a cosmetic pen ensures that its outline will have the same thickness at different scale factors.
A zero width pen is cosmetic by default.
Definition at line 783 of file qpen.cpp.
References QPenData, and QPenPrivate::width.
Referenced by QAlphaPaintEnginePrivate::addPenWidth(), QSvgPaintEngine::drawEllipse(), QSvgPaintEngine::drawPath(), QSvgPaintEngine::drawPolygon(), QSvgPaintEngine::drawRects(), QX11PaintEnginePrivate::isCosmeticPen(), QTriangulatingStroker::process(), QDashedStrokeProcessor::process(), QPdf::Stroker::setPen(), QPaintEngineEx::stroke(), QOpenGL2PaintEngineExPrivate::stroke(), QOpenGL2PaintEngineEx::stroke(), QWin32PrintEnginePrivate::strokePath(), QSvgNode::strokeWidth(), QWindowsDirect2DPaintEnginePrivate::updatePen(), and QRasterPaintEngine::updatePen().
bool QPen::isDetached | ( | ) |
Definition at line 850 of file qpen.cpp.
References QBasicAtomicInteger< T >::loadRelaxed(), and QPenPrivate::ref.
bool QPen::isSolid | ( | ) | const |
Returns true
if the pen has a solid fill, otherwise false.
Definition at line 764 of file qpen.cpp.
References QPenPrivate::brush, Qt::SolidPattern, and QBrush::style().
Qt::PenJoinStyle QPen::joinStyle | ( | ) | const |
Returns the pen's join style.
Definition at line 689 of file qpen.cpp.
References QPenPrivate::joinStyle.
Referenced by QPainterPathStroker::QPainterPathStroker(), QAlphaPaintEnginePrivate::addPenWidth(), QSvgStrokeStyle::apply(), QPainterPrivate::drawStretchedGradient(), QSvgPaintEngine::qpenToSvg(), QPainter::setPen(), QPdf::Stroker::setPen(), QCoreGraphicsPaintEnginePrivate::setStrokePen(), QPaintEngineEx::stroke(), QOpenGL2PaintEngineExPrivate::stroke(), QWin32PrintEnginePrivate::strokePath(), QWin32PrintEnginePrivate::strokePath_dev(), QWindowsDirect2DPaintEnginePrivate::updatePen(), and QX11PaintEngine::updatePen().
qreal QPen::miterLimit | ( | ) | const |
Returns the miter limit of the pen.
The miter limit is only relevant when the join style is set to Qt::MiterJoin.
Definition at line 548 of file qpen.cpp.
References QPenPrivate::miterLimit, and QPenData.
Referenced by QPainterPathStroker::QPainterPathStroker(), QSvgStrokeStyle::apply(), QPainterPrivate::drawStretchedGradient(), QTriangulatingStroker::process(), QDashedStrokeProcessor::process(), QSvgPaintEngine::qpenToSvg(), QPdf::Stroker::setPen(), QPaintEngineEx::stroke(), QOpenGL2PaintEngineExPrivate::stroke(), QWin32PrintEnginePrivate::strokePath(), QWindowsDirect2DPaintEnginePrivate::updatePen(), and QRasterPaintEngine::updatePen().
QPen::operator QVariant | ( | ) | const |
Returns the pen as a QVariant.
Definition at line 373 of file qpen.cpp.
References QVariant::fromValue().
|
inline |
Returns true
if the pen is different from the given pen; otherwise false.
Two pens are different if they have different styles, widths or colors.
Definition at line 78 of file qpen.h.
References operator==().
bool QPen::operator== | ( | const QPen & | pen | ) | const |
Returns true
if the pen is equal to the given pen; otherwise false.
Two pens are equal if they have equal styles, widths and colors.
Definition at line 826 of file qpen.cpp.
References QPenPrivate::brush, QPenPrivate::capStyle, Qt::CustomDashLine, QPenPrivate::joinStyle, qFuzzyCompare(), QPenData, QPenPrivate::style, and QPenPrivate::width.
Sets the brush used to fill strokes generated with this pen to the given brush.
Definition at line 752 of file qpen.cpp.
References brush(), and QPenPrivate::brush.
Referenced by QSvgStrokeStyle::apply(), QPainterPrivate::drawStretchedGradient(), QQuickContext2DCommandBuffer::replay(), QEmulationPaintEngine::stroke(), QPdfEngine::updateState(), and src_gui_painting_qpen::Wrapper::wrapper1().
void QPen::setCapStyle | ( | Qt::PenCapStyle | style | ) |
Sets the pen's cap style to the given style.
The default value is Qt::SquareCap.
Definition at line 676 of file qpen.cpp.
References QPenPrivate::capStyle.
Referenced by QSvgStrokeStyle::apply(), QPainter::drawPoints(), QPaintEngineEx::drawPoints(), QPainter::drawPoints(), QPaintEngineEx::drawPoints(), drawTextItemDecoration(), generateWavyPixmap(), QQuickBasicDial::paint(), qDrawRoundedCorners(), QQuickContext2DCommandBuffer::replay(), and src_gui_painting_qpen::Wrapper::wrapper1().
Sets the color of this pen's brush to the given color.
Definition at line 731 of file qpen.cpp.
References QPenPrivate::brush.
Referenced by QSvgAnimateColor::apply(), QQC2::QCommonStyle::drawControl(), QCommonStyle::drawControl(), QQC2_NAMESPACE::QMacStyle::drawPrimitive(), drawTextItemDecoration(), QQuickMaterialTextContainer::paint(), QQuickUniversalFocusRectangle::paint(), QPaintEngineEx::stroke(), QQuickMaterialBusyIndicatorNode::updateCurrentTime(), and QPdfEngine::updateState().
void QPen::setCosmetic | ( | bool | cosmetic | ) |
Sets this pen to cosmetic or non-cosmetic, depending on the value of cosmetic.
Definition at line 797 of file qpen.cpp.
References QPenPrivate::cosmetic, and QPenData.
Referenced by QSvgStrokeStyle::apply(), and QTextLayout::drawCursor().
Sets the dash offset (the starting point on the dash pattern) for this pen to the offset specified.
The offset is measured in terms of the units used to specify the dash pattern.
\table \row
However, if the dash offset is set to 4.0, any line drawn will begin with the gap. Values of the offset up to 4.0 will cause part of the stroke to be drawn first, and values of the offset between 4.0 and 6.0 will cause the line to begin with part of the gap. \endtable
Definition at line 529 of file qpen.cpp.
References Qt::CustomDashLine, dashOffset(), QPenPrivate::dashOffset, dashPattern(), qFuzzyCompare(), QPenData, and QPenPrivate::style.
Referenced by QSvgStrokeStyle::apply(), and QQuickContext2DCommandBuffer::replay().
Sets the dash pattern for this pen to the given pattern.
This implicitly converts the style of the pen to Qt::CustomDashLine.
The pattern must be specified as an even number of positive entries where the entries 1, 3, 5... are the dashes and 2, 4, 6... are the spaces. For example:
\table 100% \row
The dash pattern is specified in units of the pens width; e.g. a dash of length 5 in width 10 is 50 pixels long. Note that a pen with zero width is equivalent to a cosmetic pen with a width of 1 pixel.
Each dash is also subject to cap styles so a dash of 1 with square cap set will extend 0.5 pixels out in each direction resulting in a total width of 2.
Note that the default cap style is Qt::SquareCap, meaning that a square line end covers the end point and extends beyond it by half the line width.
Definition at line 484 of file qpen.cpp.
References Qt::CustomDashLine, QPenPrivate::dashPattern, QPenData, qWarning, and QPenPrivate::style.
Referenced by QSvgStrokeStyle::apply(), QQuickUniversalFocusRectangle::paint(), QQuickContext2DCommandBuffer::replay(), QSvgStrokeStyle::setDashArray(), src_gui_painting_qpen::Wrapper::wrapper2(), and src_gui_painting_qpen::Wrapper::wrapper3().
void QPen::setJoinStyle | ( | Qt::PenJoinStyle | style | ) |
Sets the pen's join style to the given style.
The default value is Qt::BevelJoin.
Definition at line 703 of file qpen.cpp.
References j, and QPenPrivate::joinStyle.
Referenced by QSGSoftwareInternalRectangleNode::QSGSoftwareInternalRectangleNode(), QSvgStrokeStyle::apply(), QQuickContext2DCommandBuffer::replay(), and src_gui_painting_qpen::Wrapper::wrapper1().
Sets the miter limit of this pen to the given limit.
The miter limit describes how far a miter join can extend from the join point. This is used to reduce artifacts between line joins where the lines are close to parallel.
This value does only have effect when the pen style is set to Qt::MiterJoin. The value is specified in units of the pen's width, e.g. a miter limit of 5 in width 10 is 50 pixels long. The default miter limit is 2, i.e. twice the pen width in pixels.
Definition at line 570 of file qpen.cpp.
References QPenPrivate::miterLimit, and QPenData.
Referenced by QSGSoftwareInternalRectangleNode::QSGSoftwareInternalRectangleNode(), QSvgStrokeStyle::apply(), QSvgTinyDocument::draw(), QSvgTinyDocument::draw(), QQuickContext2DCommandBuffer::replay(), and QSvgNode::transformedBounds().
void QPen::setStyle | ( | Qt::PenStyle | style | ) |
[0]
Sets the pen style to the given style.
See the \l Qt::PenStyle documentation for a list of the available styles. Since Qt 4.1 it is also possible to specify a custom dash pattern using the setDashPattern() function which implicitly converts the style of the pen to Qt::CustomDashLine.
Definition at line 5 of file doc_src_groups.cpp.
References style(), and QPenPrivate::style.
Referenced by QGraphicsSimpleTextItemPrivate::QGraphicsSimpleTextItemPrivate(), QSvgStrokeStyle::apply(), drawTextItemDecoration(), QQuickContext2DCommandBuffer::replay(), QPaintEngineEx::stroke(), QEmulationPaintEngine::stroke(), src_gui_painting_qpen::Wrapper::wrapper1(), and src_gui_painting_qpainter2::MyWidget::wrapper15().
void QPen::setWidth | ( | int | width | ) |
Sets the pen width to the given width in pixels with integer precision.
A line width of zero indicates a cosmetic pen. This means that the pen width is always drawn one pixel wide, independent of the \l {QPainter::Coordinate Transformations}{transformation} set on the painter.
Setting a pen width with a negative value is not supported.
Definition at line 618 of file qpen.cpp.
References qWarning, width(), and QPenPrivate::width.
Referenced by QQC2::QCommonStyle::drawControl(), QMacStyle::drawControl(), QCommonStyle::drawControl(), QQC2_NAMESPACE::QMacStyle::drawPrimitive(), QtWaylandClient::QWaylandBradientDecoration::paint(), QQuickBasicDial::paint(), QQuickMaterialTextContainer::paint(), QQuickUniversalFocusRectangle::paint(), QQuickMaterialBusyIndicatorNode::updateCurrentTime(), and src_gui_painting_qpen::Wrapper::wrapper1().
Sets the pen width to the given width in pixels with floating point precision.
A line width of zero indicates a cosmetic pen. This means that the pen width is always drawn one pixel wide, independent of the \l {QPainter::Coordinate Transformations}{transformation} on the painter.
Setting a pen width with a negative value is not supported.
Definition at line 644 of file qpen.cpp.
References qAbs(), qWarning, width(), and QPenPrivate::width.
Referenced by QSvgStrokeStyle::apply(), QFontEngineBox::draw(), QSvgFont::draw(), QPaintEnginePrivate::drawBoxTextItem(), drawTextItemDecoration(), generateWavyPixmap(), QQuickMaterialTextContainer::paint(), QQuickContext2DCommandBuffer::replay(), and QSGSoftwareInternalRectangleNode::update().
Qt::PenStyle QPen::style | ( | ) | const |
Returns the pen style.
Definition at line 385 of file qpen.cpp.
References QPenPrivate::style.
Referenced by QPainterPathStroker::QPainterPathStroker(), QPen(), QAlphaPaintEnginePrivate::addPenWidth(), QSvgStrokeStyle::apply(), QGraphicsPathItem::boundingRect(), QGraphicsRectItem::boundingRect(), QGraphicsEllipseItem::boundingRect(), QGraphicsPolygonItem::boundingRect(), QPainterPrivate::drawStretchedGradient(), is_pen_transparent(), QSvgPaintEngine::qpenToSvg(), QPainter::setPen(), QPdf::Stroker::setPen(), QCoreGraphicsPaintEnginePrivate::setStrokePen(), setStyle(), QPaintEngineEx::stroke(), QEmulationPaintEngine::stroke(), QWin32PrintEnginePrivate::strokePath(), QSvgNode::strokeWidth(), QQuickShapeGenericRenderer::triangulateStroke(), QQuickShapeCurveRenderer::updateNode(), QWindowsDirect2DPaintEnginePrivate::updatePen(), QPicturePaintEngine::updatePen(), and QX11PaintEngine::updatePen().
Swaps pen other with this pen. This operation is very fast and never fails.
Definition at line 40 of file qpen.h.
References d, other(), and qt_ptr_swap().
Referenced by operator=().
int QPen::width | ( | ) | const |
Returns the pen width with integer precision.
Definition at line 586 of file qpen.cpp.
References qRound(), and QPenPrivate::width.
Referenced by QQuickMaterialTextContainer::paint(), QSvgPaintEngine::qpenToSvg(), setWidth(), setWidthF(), QQuickMaterialBusyIndicatorNode::updateCurrentTime(), QPicturePaintEngine::updatePen(), and src_gui_painting_qpainter2::MyWidget::wrapper15().
qreal QPen::widthF | ( | ) | const |
Returns the pen width with floating point precision.
Definition at line 598 of file qpen.cpp.
References QPenPrivate::width.
Referenced by QPainterPathStroker::QPainterPathStroker(), QAlphaPaintEnginePrivate::addPenWidth(), QSvgStrokeStyle::apply(), QGraphicsPathItem::boundingRect(), QGraphicsRectItem::boundingRect(), QGraphicsEllipseItem::boundingRect(), QGraphicsPolygonItem::boundingRect(), QStyle::drawItemText(), QQC2::QStyle::drawItemText(), QPainterPrivate::drawStretchedGradient(), drawTextItemDecoration(), QPdf::generateDashes(), generateWavyPixmap(), hash(), QQuickBasicDial::paint(), QSvgPaintEngine::qpenToSvg(), QSvgStrokeStyle::setDashArray(), QPdf::Stroker::setPen(), QCoreGraphicsPaintEnginePrivate::setStrokePen(), QPaintEngineEx::stroke(), QWin32PrintEnginePrivate::strokePath(), QSvgNode::strokeWidth(), QQuickShapeCurveRenderer::updateNode(), QWindowsDirect2DPaintEnginePrivate::updatePen(), and QX11PaintEngine::updatePen().
|
friend |
|
related |
|
friend |
|
related |