Skip to content

PythonQt.QtGui.QPolygon · declarations 002

Back to PythonQt.QtGui.QPolygon

setSharable

setSharable(sharable: bool) -> None

X.setSharable(sharable)

Upstream PySide2 reference signatures (binding differences may apply):

setSharable(self, sharable: bool) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpolygon.html#setSharable

size

size() -> int

X.size() -> int

Upstream PySide2 reference signatures (binding differences may apply):

size(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qpolygon.html#size

squeeze

squeeze() -> None

X.squeeze()

Upstream PySide2 reference signatures (binding differences may apply):

squeeze(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qpolygon.html#squeeze

startsWith

startsWith(t: Any) -> bool

X.startsWith(t) -> bool

Upstream PySide2 reference signatures (binding differences may apply):

startsWith(self, t: PySide2.QtCore.QPoint) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qpolygon.html#startsWith

subtracted

subtracted(r: Any) -> Any

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

Supplemental documentation: Qt 5 reference:

QPolygon QPolygon::subtracted(const QPolygon \&r) const

Returns a polygon which is r subtracted from this polygon.

Set operations on polygons will treat the polygons as areas. Non-closed polygons will be treated as implicitly closed.

This function was introduced in Qt 4.3.

Upstream PySide2 reference signatures (binding differences may apply):

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

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

swap

swap(other: Any) -> None

X.swap(other)

Supplemental documentation: Qt 5 reference:

void QPolygon::swap(QPolygon \&other)

Swaps polygon other with this polygon. 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.QPolygon) -> None

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

takeAt

takeAt(i: int) -> Any

X.takeAt(i) -> PythonQt.QtCore.QPoint

Upstream PySide2 reference signatures (binding differences may apply):

takeAt(self, i: int) -> PySide2.QtCore.QPoint

Source: https://doc.qt.io/archives/qt-5.15/qpolygon.html#takeAt

takeFirst

takeFirst() -> Any

X.takeFirst() -> PythonQt.QtCore.QPoint

Upstream PySide2 reference signatures (binding differences may apply):

takeFirst(self) -> PySide2.QtCore.QPoint

Source: https://doc.qt.io/archives/qt-5.15/qpolygon.html#takeFirst

takeLast

takeLast() -> Any

X.takeLast() -> PythonQt.QtCore.QPoint

Upstream PySide2 reference signatures (binding differences may apply):

takeLast(self) -> PySide2.QtCore.QPoint

Source: https://doc.qt.io/archives/qt-5.15/qpolygon.html#takeLast

toList

toList() -> tuple

X.toList() -> tuple

Upstream PySide2 reference signatures (binding differences may apply):

toList(self) -> typing.List[PySide2.QtCore.QPoint]

Source: https://doc.qt.io/archives/qt-5.15/qpolygon.html#toList

translate

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

X.translate(dx, dy)

Supplemental documentation: Qt 5 reference:

void QPolygon::translate(int dx, int dy)

Translates all points in the polygon by (dx, dy).

See also translated().

void QPolygon::translate(const QPoint \&offset)

This is an overloaded function.

Translates all points in the polygon by the given offset.

See also translated().

Upstream PySide2 reference signatures (binding differences may apply):

translate(self, dx: int, dy: int) -> None
translate(self, offset: PySide2.QtCore.QPoint) -> None

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

translated

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

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

Supplemental documentation: Qt 5 reference:

QPolygon QPolygon::translated(int dx, int dy) const

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

This function was introduced in Qt 4.6.

See also translate().

QPolygon QPolygon::translated(const QPoint \&offset) const

This is an overloaded function.

Returns a copy of the polygon 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: int, dy: int) -> PySide2.QtGui.QPolygon
translated(self, offset: PySide2.QtCore.QPoint) -> PySide2.QtGui.QPolygon

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

united

united(r: Any) -> Any

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

Supplemental documentation: Qt 5 reference:

QPolygon QPolygon::united(const QPolygon \&r) const

Returns a polygon which is the union of this polygon and r.

Set operations on polygons, will treat the polygons as areas, and implicitly close the polygon.

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.QPolygon) -> PySide2.QtGui.QPolygon

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

value

value(i: int, defaultValue: Any) -> Any

X.value(i, defaultValue) -> PythonQt.QtCore.QPoint

Upstream PySide2 reference signatures (binding differences may apply):

value(self, i: int) -> PySide2.QtCore.QPoint
value(self, i: int, defaultValue: PySide2.QtCore.QPoint) -> PySide2.QtCore.QPoint

Source: https://doc.qt.io/archives/qt-5.15/qpolygon.html#value

writeTo

writeTo(stream: Any) -> Any

X.writeTo(stream)