Skip to content

PythonQt.QtGui.QPainterPath · declarations 002

Back to PythonQt.QtGui.QPainterPath

subtracted

subtracted(r: Any) -> Any

X.subtracted(r) -> PythonQt.QtGui.QPainterPath

Supplemental documentation: Qt 5 reference:

QPainterPath QPainterPath::subtracted(const QPainterPath \&p) const

Returns a path which is p's fill area subtracted from this path's fill area.

Set operations on paths will treat the paths as areas. Non-closed paths will be treated as implicitly closed. Bezier curves may be flattened to line segments due to numerical instability of doing bezier curve intersections.

This function was introduced in Qt 4.3.

Upstream PySide2 reference signatures (binding differences may apply):

subtracted(self, r: PySide2.QtGui.QPainterPath) -> PySide2.QtGui.QPainterPath

Source: https://doc.qt.io/archives/qt-5.15/qpainterpath.html#subtracted

subtractedInverted

subtractedInverted(r: Any) -> Any

X.subtractedInverted(r) -> PythonQt.QtGui.QPainterPath

Upstream PySide2 reference signatures (binding differences may apply):

subtractedInverted(self, r: PySide2.QtGui.QPainterPath) -> PySide2.QtGui.QPainterPath

Source: https://doc.qt.io/archives/qt-5.15/qpainterpath.html#subtractedInverted

swap

swap(other: Any) -> None

X.swap(other)

Supplemental documentation: Qt 5 reference:

void QPainterPath::swap(QPainterPath \&other)

Swaps painter path other with this painter path. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

Upstream PySide2 reference signatures (binding differences may apply):

swap(self, other: PySide2.QtGui.QPainterPath) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpainterpath.html#swap

toFillPolygon

toFillPolygon(matrix: Any) -> Any

X.toFillPolygon(matrix) -> PythonQt.QtGui.QPolygonF

Supplemental documentation: Qt 5 reference:

QPolygonF QPainterPath::toFillPolygon(const QTransform \&matrix \= QTransform()) const

Converts the path into a polygon using the QTransform matrix, and returns the polygon.

The polygon is created by first converting all subpaths to polygons, then using a rewinding technique to make sure that overlapping subpaths can be filled using the correct fill rule.

Note that rewinding inserts addition lines in the polygon so the outline of the fill polygon does not match the outline of the path.

See also toSubpathPolygons(), toFillPolygons(), and QPainterPath Conversion.

Upstream PySide2 reference signatures (binding differences may apply):

toFillPolygon(self, matrix: PySide2.QtGui.QMatrix) -> PySide2.QtGui.QPolygonF
toFillPolygon(self, matrix: PySide2.QtGui.QTransform=...) -> PySide2.QtGui.QPolygonF

Source: https://doc.qt.io/archives/qt-5.15/qpainterpath.html#toFillPolygon

toFillPolygons

toFillPolygons(matrix: Any) -> tuple

X.toFillPolygons(matrix) -> tuple

Supplemental documentation: Qt 5 reference:

QList\<QPolygonF> QPainterPath::toFillPolygons(const QTransform \&matrix \= QTransform()) const

Converts the path into a list of polygons using the QTransform matrix, and returns the list.

The function differs from the toFillPolygon() function in that it creates several polygons. It is provided because it is usually faster to draw several small polygons than to draw one large polygon, even though the total number of points drawn is the same.

The toFillPolygons() function differs from the toSubpathPolygons() function in that it create only polygon for subpaths that have overlapping bounding rectangles.

Like the toFillPolygon() function, this function uses a rewinding technique to make sure that overlapping subpaths can be filled using the correct fill rule. Note that rewinding inserts addition lines in the polygons so the outline of the fill polygon does not match the outline of the path.

See also toSubpathPolygons(), toFillPolygon(), and QPainterPath Conversion.

Upstream PySide2 reference signatures (binding differences may apply):

toFillPolygons(self, matrix: PySide2.QtGui.QMatrix) -> typing.List[PySide2.QtGui.QPolygonF]
toFillPolygons(self, matrix: PySide2.QtGui.QTransform=...) -> typing.List[PySide2.QtGui.QPolygonF]

Source: https://doc.qt.io/archives/qt-5.15/qpainterpath.html#toFillPolygons

toReversed

toReversed() -> Any

X.toReversed() -> PythonQt.QtGui.QPainterPath

Supplemental documentation: Qt 5 reference:

QPainterPath QPainterPath::toReversed() const

Creates and returns a reversed copy of the path.

It is the order of the elements that is reversed: If a QPainterPath is composed by calling the moveTo(), lineTo() and cubicTo() functions in the specified order, the reversed copy is composed by calling cubicTo(), lineTo() and moveTo().

Upstream PySide2 reference signatures (binding differences may apply):

toReversed(self) -> PySide2.QtGui.QPainterPath

Source: https://doc.qt.io/archives/qt-5.15/qpainterpath.html#toReversed

toSubpathPolygons

toSubpathPolygons(matrix: Any) -> tuple

X.toSubpathPolygons(matrix) -> tuple

Supplemental documentation: Qt 5 reference:

QList\<QPolygonF> QPainterPath::toSubpathPolygons(const QTransform \&matrix \= QTransform()) const

Converts the path into a list of polygons using the QTransform matrix, and returns the list.

This function creates one polygon for each subpath regardless of intersecting subpaths (i.e. overlapping bounding rectangles). To make sure that such overlapping subpaths are filled correctly, use the toFillPolygons() function instead.

See also toFillPolygons(), toFillPolygon(), and QPainterPath Conversion.

Upstream PySide2 reference signatures (binding differences may apply):

toSubpathPolygons(self, matrix: PySide2.QtGui.QMatrix) -> typing.List[PySide2.QtGui.QPolygonF]
toSubpathPolygons(self, matrix: PySide2.QtGui.QTransform=...) -> typing.List[PySide2.QtGui.QPolygonF]

Source: https://doc.qt.io/archives/qt-5.15/qpainterpath.html#toSubpathPolygons

translate

translate(dx: Any, dy: Any) -> None

X.translate(dx, dy)

Supplemental documentation: Qt 5 reference:

void QPainterPath::translate(qreal dx, qreal dy)

Translates all elements in the path by (dx, dy).

This function was introduced in Qt 4.6.

See also translated().

void QPainterPath::translate(const QPointF \&offset)

This is an overloaded function.

Translates all elements in the path by the given offset.

This function was introduced in Qt 4.6.

See also translated().

Upstream PySide2 reference signatures (binding differences may apply):

translate(self, dx: float, dy: float) -> None
translate(self, offset: PySide2.QtCore.QPointF) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpainterpath.html#translate

translated

translated(dx: Any, dy: Any) -> Any

X.translated(dx, dy) -> PythonQt.QtGui.QPainterPath

Supplemental documentation: Qt 5 reference:

QPainterPath QPainterPath::translated(qreal dx, qreal dy) const

Returns a copy of the path that is translated by (dx, dy).

This function was introduced in Qt 4.6.

See also translate().

QPainterPath QPainterPath::translated(const QPointF \&offset) const

This is an overloaded function.

Returns a copy of the path that is translated by the given offset.

This function was introduced in Qt 4.6.

See also translate().

Upstream PySide2 reference signatures (binding differences may apply):

translated(self, dx: float, dy: float) -> PySide2.QtGui.QPainterPath
translated(self, offset: PySide2.QtCore.QPointF) -> PySide2.QtGui.QPainterPath

Source: https://doc.qt.io/archives/qt-5.15/qpainterpath.html#translated

united

united(r: Any) -> Any

X.united(r) -> PythonQt.QtGui.QPainterPath

Supplemental documentation: Qt 5 reference:

QPainterPath QPainterPath::united(const QPainterPath \&p) const

Returns a path which is the union of this path's fill area and p's fill area.

Set operations on paths will treat the paths as areas. Non-closed paths will be treated as implicitly closed. Bezier curves may be flattened to line segments due to numerical instability of doing bezier curve intersections.

This function was introduced in Qt 4.3.

See also intersected() and subtracted().

Upstream PySide2 reference signatures (binding differences may apply):

united(self, r: PySide2.QtGui.QPainterPath) -> PySide2.QtGui.QPainterPath

Source: https://doc.qt.io/archives/qt-5.15/qpainterpath.html#united