Skip to content

PythonQt.QtGui.QPainterPathStroker · declarations 001

Back to PythonQt.QtGui.QPainterPathStroker

capStyle

capStyle() -> Any

X.capStyle()

Supplemental documentation: Qt 5 reference:

Qt::PenCapStyle QPainterPathStroker::capStyle() const

Returns the cap style of the generated outlines.

See also setCapStyle().

Upstream PySide2 reference signatures (binding differences may apply):

capStyle(self) -> PySide2.QtCore.Qt.PenCapStyle

Source: https://doc.qt.io/archives/qt-5.15/qpainterpathstroker.html#capStyle

createStroke

createStroke(path: Any) -> Any

X.createStroke(path) -> PythonQt.QtGui.QPainterPath

Supplemental documentation: Qt 5 reference:

QPainterPath QPainterPathStroker::createStroke(const QPainterPath \&path) const

Generates a new path that is a fillable area representing the outline of the given path.

The various design aspects of the outline are based on the stroker's properties: width(), capStyle(), joinStyle(), dashPattern(), curveThreshold() and miterLimit().

The generated path should only be used for outlining the given painter path. Otherwise it may cause unexpected behavior. Generated outlines also require the Qt::WindingFill rule which is set by default.

Upstream PySide2 reference signatures (binding differences may apply):

createStroke(self, path: PySide2.QtGui.QPainterPath) -> PySide2.QtGui.QPainterPath

Source: https://doc.qt.io/archives/qt-5.15/qpainterpathstroker.html#createStroke

curveThreshold

curveThreshold() -> float

X.curveThreshold() -> float

Supplemental documentation: Qt 5 reference:

qreal QPainterPathStroker::curveThreshold() const

Returns the curve flattening threshold for the generated outlines.

See also setCurveThreshold().

Upstream PySide2 reference signatures (binding differences may apply):

curveThreshold(self) -> float

Source: https://doc.qt.io/archives/qt-5.15/qpainterpathstroker.html#curveThreshold

dashOffset

dashOffset() -> float

X.dashOffset() -> float

Supplemental documentation: Qt 5 reference:

qreal QPainterPathStroker::dashOffset() const

Returns the dash offset for the generated outlines.

See also setDashOffset().

Upstream PySide2 reference signatures (binding differences may apply):

dashOffset(self) -> float

Source: https://doc.qt.io/archives/qt-5.15/qpainterpathstroker.html#dashOffset

dashPattern

dashPattern() -> tuple

X.dashPattern() -> tuple

Supplemental documentation: Qt 5 reference:

QVector\<qreal> QPainterPathStroker::dashPattern() const

Returns the dash pattern for the generated outlines.

See also setDashPattern().

Upstream PySide2 reference signatures (binding differences may apply):

dashPattern(self) -> typing.List[float]

Source: https://doc.qt.io/archives/qt-5.15/qpainterpathstroker.html#dashPattern

joinStyle

joinStyle() -> Any

X.joinStyle()

Supplemental documentation: Qt 5 reference:

Qt::PenJoinStyle QPainterPathStroker::joinStyle() const

Returns the join style of the generated outlines.

See also setJoinStyle().

Upstream PySide2 reference signatures (binding differences may apply):

joinStyle(self) -> PySide2.QtCore.Qt.PenJoinStyle

Source: https://doc.qt.io/archives/qt-5.15/qpainterpathstroker.html#joinStyle

miterLimit

miterLimit() -> float

X.miterLimit() -> float

Supplemental documentation: Qt 5 reference:

qreal QPainterPathStroker::miterLimit() const

Returns the miter limit for the generated outlines.

See also setMiterLimit().

Upstream PySide2 reference signatures (binding differences may apply):

miterLimit(self) -> float

Source: https://doc.qt.io/archives/qt-5.15/qpainterpathstroker.html#miterLimit

setCapStyle

setCapStyle(style: Any) -> None

X.setCapStyle(style)

Supplemental documentation: Qt 5 reference:

void QPainterPathStroker::setCapStyle(Qt::PenCapStyle style)

Sets the cap style of the generated outlines to style. If a dash pattern is set, each segment of the pattern is subject to the cap style.

See also capStyle().

Upstream PySide2 reference signatures (binding differences may apply):

setCapStyle(self, style: PySide2.QtCore.Qt.PenCapStyle) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpainterpathstroker.html#setCapStyle

setCurveThreshold

setCurveThreshold(threshold: float) -> None

X.setCurveThreshold(threshold)

Supplemental documentation: Qt 5 reference:

void QPainterPathStroker::setCurveThreshold(qreal threshold)

Specifies the curve flattening threshold, controlling the granularity with which the generated outlines' curve is drawn.

The default threshold is a well adjusted value (0.25), and normally you should not need to modify it. However, you can make the curve's appearance smoother by decreasing its value.

See also curveThreshold().

Upstream PySide2 reference signatures (binding differences may apply):

setCurveThreshold(self, threshold: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpainterpathstroker.html#setCurveThreshold

setDashOffset

setDashOffset(offset: float) -> None

X.setDashOffset(offset)

Supplemental documentation: Qt 5 reference:

void QPainterPathStroker::setDashOffset(qreal offset)

Sets the dash offset for the generated outlines to offset.

See the documentation for QPen::setDashOffset() for a description of the dash offset.

See also dashOffset().

Upstream PySide2 reference signatures (binding differences may apply):

setDashOffset(self, offset: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpainterpathstroker.html#setDashOffset

setDashPattern

setDashPattern(arg__1: Any) -> None

X.setDashPattern(arg__1)

Supplemental documentation: Qt 5 reference:

void QPainterPathStroker::setDashPattern(Qt::PenStyle style)

Sets the dash pattern for the generated outlines to style.

See also dashPattern().

void QPainterPathStroker::setDashPattern(const QVector\<qreal> \&dashPattern)

This is an overloaded function.

Sets the dash pattern for the generated outlines to dashPattern. This function makes it possible to specify custom dash patterns.

Each element in the vector contains the lengths of the dashes and spaces in the stroke, beginning with the first dash in the first element, the first space in the second element, and alternating between dashes and spaces for each following pair of elements.

The vector can contain an odd number of elements, in which case the last element will be extended by the length of the first element when the pattern repeats.

Upstream PySide2 reference signatures (binding differences may apply):

setDashPattern(self, arg__1: PySide2.QtCore.Qt.PenStyle) -> None
setDashPattern(self, dashPattern: typing.List[float]) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpainterpathstroker.html#setDashPattern

setJoinStyle

setJoinStyle(style: Any) -> None

X.setJoinStyle(style)

Supplemental documentation: Qt 5 reference:

void QPainterPathStroker::setJoinStyle(Qt::PenJoinStyle style)

Sets the join style of the generated outlines to style.

See also joinStyle().

Upstream PySide2 reference signatures (binding differences may apply):

setJoinStyle(self, style: PySide2.QtCore.Qt.PenJoinStyle) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpainterpathstroker.html#setJoinStyle

setMiterLimit

setMiterLimit(length: float) -> None

X.setMiterLimit(length)

Supplemental documentation: Qt 5 reference:

void QPainterPathStroker::setMiterLimit(qreal limit)

Sets the miter limit of the generated outlines to limit.

The miter limit describes how far from each join the miter join can extend. The limit is specified in units of the currently set width. So the pixelwise miter limit will be miterlimit * width.

This value is only used if the join style is Qt::MiterJoin.

See also miterLimit().

Upstream PySide2 reference signatures (binding differences may apply):

setMiterLimit(self, length: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpainterpathstroker.html#setMiterLimit

setWidth

setWidth(width: float) -> None

X.setWidth(width)

Supplemental documentation: Qt 5 reference:

void QPainterPathStroker::setWidth(qreal width)

Sets the width of the generated outline painter path to width.

The generated outlines will extend approximately 50% of width to each side of the given input path's original outline.

See also width().

Upstream PySide2 reference signatures (binding differences may apply):

setWidth(self, width: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpainterpathstroker.html#setWidth

width

width() -> float

X.width() -> float

Supplemental documentation: Qt 5 reference:

qreal QPainterPathStroker::width() const

Returns the width of the generated outlines.

See also setWidth().

Upstream PySide2 reference signatures (binding differences may apply):

width(self) -> float

Source: https://doc.qt.io/archives/qt-5.15/qpainterpathstroker.html#width