Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide2.QtGui »

Classe « QPolygon »

Informations générales

Héritage

builtins.object
    Object
        QPolygon

Définition

class QPolygon(Object):

Description [extrait de QPolygon.__doc__]

QPolygon(self)
QPolygon(self, other: PySide2.QtGui.QPolygon)
QPolygon(self, r: PySide2.QtCore.QRect, closed: bool = False)
QPolygon(self, size: int)
QPolygon(self, v: typing.List[PySide2.QtCore.QPoint])

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des opérateurs

Signature de l'opérateur Description
__add__(self, l: typing.List[PySide2.QtCore.QPoint]) -> typing.List[PySide2.QtCore.QPoint] __add__(self, l: typing.List[PySide2.QtCore.QPoint]) -> typing.List[PySide2.QtCore.QPoint] [extrait de __add__.__doc__]
__delitem__(self, key) Delete self[key]. [extrait de __delitem__.__doc__]
__eq__(self, value) Return self==value. [extrait de __eq__.__doc__]
__ge__(self, value) Return self>=value. [extrait de __ge__.__doc__]
__getitem__(self, key) Return self[key]. [extrait de __getitem__.__doc__]
__gt__(self, value) Return self>value. [extrait de __gt__.__doc__]
__iadd__(self, t: PySide2.QtCore.QPoint) -> typing.List[PySide2.QtCore.QPoint] __iadd__(self, t: PySide2.QtCore.QPoint) -> typing.List[PySide2.QtCore.QPoint] [extrait de __iadd__.__doc__]
__le__(self, value) Return self<=value. [extrait de __le__.__doc__]
__lshift__ __lshift__(self, l: typing.List[PySide2.QtCore.QPoint]) -> typing.List[PySide2.QtCore.QPoint] [extrait de __lshift__.__doc__]
__lt__(self, value) Return self<value. [extrait de __lt__.__doc__]
__mul__ __mul__(self, m: PySide2.QtGui.QMatrix) -> PySide2.QtGui.QPolygon [extrait de __mul__.__doc__]
__ne__(self, value) Return self!=value. [extrait de __ne__.__doc__]
__radd__(self, value) Return value+self. [extrait de __radd__.__doc__]
__rlshift__(self, value) Return value<<self. [extrait de __rlshift__.__doc__]
__rmul__(self, value) Return value*self. [extrait de __rmul__.__doc__]
__rrshift__(self, value) Return value>>self. [extrait de __rrshift__.__doc__]
__rshift__(self, stream: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream __rshift__(self, stream: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream [extrait de __rshift__.__doc__]
__setitem__(self, key, value) Set self[key] to value. [extrait de __setitem__.__doc__]

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__copy__(self) __copy__(self) [extrait de __copy__.__doc__]
__len__(self) Return len(self). [extrait de __len__.__doc__]
__reduce__(self) -> object __reduce__(self) -> object [extrait de __reduce__.__doc__]
__repr__(self) Return repr(self). [extrait de __repr__.__doc__]
append append(self, l: typing.List[PySide2.QtCore.QPoint]) [extrait de append.__doc__]
at(self, i: int) -> PySide2.QtCore.QPoint at(self, i: int) -> PySide2.QtCore.QPoint [extrait de at.__doc__]
back(self) -> PySide2.QtCore.QPoint back(self) -> PySide2.QtCore.QPoint [extrait de back.__doc__]
boundingRect(self) -> PySide2.QtCore.QRect boundingRect(self) -> PySide2.QtCore.QRect [extrait de boundingRect.__doc__]
capacity(self) -> int capacity(self) -> int [extrait de capacity.__doc__]
clear(self) clear(self) [extrait de clear.__doc__]
constData(self) -> PySide2.QtCore.QPoint constData(self) -> PySide2.QtCore.QPoint [extrait de constData.__doc__]
constFirst(self) -> PySide2.QtCore.QPoint constFirst(self) -> PySide2.QtCore.QPoint [extrait de constFirst.__doc__]
constLast(self) -> PySide2.QtCore.QPoint constLast(self) -> PySide2.QtCore.QPoint [extrait de constLast.__doc__]
contains(self, t: PySide2.QtCore.QPoint) -> bool contains(self, t: PySide2.QtCore.QPoint) -> bool [extrait de contains.__doc__]
containsPoint(self, pt: PySide2.QtCore.QPoint, fillRule: PySide2.QtCore.Qt.FillRule) -> bool containsPoint(self, pt: PySide2.QtCore.QPoint, fillRule: PySide2.QtCore.Qt.FillRule) -> bool [extrait de containsPoint.__doc__]
count count(self) -> int [extrait de count.__doc__]
data(self) -> PySide2.QtCore.QPoint data(self) -> PySide2.QtCore.QPoint [extrait de data.__doc__]
empty(self) -> bool empty(self) -> bool [extrait de empty.__doc__]
endsWith(self, t: PySide2.QtCore.QPoint) -> bool endsWith(self, t: PySide2.QtCore.QPoint) -> bool [extrait de endsWith.__doc__]
fill(self, t: PySide2.QtCore.QPoint, size: int = -1) -> typing.List[PySide2.QtCore.QPoint] fill(self, t: PySide2.QtCore.QPoint, size: int = -1) -> typing.List[PySide2.QtCore.QPoint] [extrait de fill.__doc__]
first(self) -> PySide2.QtCore.QPoint first(self) -> PySide2.QtCore.QPoint [extrait de first.__doc__]
fromList(list: typing.Sequence[PySide2.QtCore.QPoint]) -> typing.List[PySide2.QtCore.QPoint] fromList(list: typing.Sequence[PySide2.QtCore.QPoint]) -> typing.List[PySide2.QtCore.QPoint] [extrait de fromList.__doc__]
front(self) -> PySide2.QtCore.QPoint front(self) -> PySide2.QtCore.QPoint [extrait de front.__doc__]
indexOf(self, t: PySide2.QtCore.QPoint, from_: int = 0) -> int indexOf(self, t: PySide2.QtCore.QPoint, from_: int = 0) -> int [extrait de indexOf.__doc__]
insert insert(self, i: int, n: int, t: PySide2.QtCore.QPoint) [extrait de insert.__doc__]
intersected(self, r: PySide2.QtGui.QPolygon) -> PySide2.QtGui.QPolygon intersected(self, r: PySide2.QtGui.QPolygon) -> PySide2.QtGui.QPolygon [extrait de intersected.__doc__]
intersects(self, r: PySide2.QtGui.QPolygon) -> bool intersects(self, r: PySide2.QtGui.QPolygon) -> bool [extrait de intersects.__doc__]
isEmpty(self) -> bool isEmpty(self) -> bool [extrait de isEmpty.__doc__]
isSharedWith(self, other: typing.List[PySide2.QtCore.QPoint]) -> bool isSharedWith(self, other: typing.List[PySide2.QtCore.QPoint]) -> bool [extrait de isSharedWith.__doc__]
last(self) -> PySide2.QtCore.QPoint last(self) -> PySide2.QtCore.QPoint [extrait de last.__doc__]
lastIndexOf(self, t: PySide2.QtCore.QPoint, from_: int = -1) -> int lastIndexOf(self, t: PySide2.QtCore.QPoint, from_: int = -1) -> int [extrait de lastIndexOf.__doc__]
length(self) -> int length(self) -> int [extrait de length.__doc__]
mid(self, pos: int, len: int = -1) -> typing.List[PySide2.QtCore.QPoint] mid(self, pos: int, len: int = -1) -> typing.List[PySide2.QtCore.QPoint] [extrait de mid.__doc__]
move(self, from_: int, to: int) move(self, from_: int, to: int) [extrait de move.__doc__]
pop_back(self) pop_back(self) [extrait de pop_back.__doc__]
pop_front(self) pop_front(self) [extrait de pop_front.__doc__]
prepend(self, t: PySide2.QtCore.QPoint) prepend(self, t: PySide2.QtCore.QPoint) [extrait de prepend.__doc__]
push_back(self, t: PySide2.QtCore.QPoint) push_back(self, t: PySide2.QtCore.QPoint) [extrait de push_back.__doc__]
push_front(self, t: PySide2.QtCore.QPoint) push_front(self, t: PySide2.QtCore.QPoint) [extrait de push_front.__doc__]
remove remove(self, i: int) [extrait de remove.__doc__]
removeAll(self, t: PySide2.QtCore.QPoint) -> int removeAll(self, t: PySide2.QtCore.QPoint) -> int [extrait de removeAll.__doc__]
removeAt(self, i: int) removeAt(self, i: int) [extrait de removeAt.__doc__]
removeFirst(self) removeFirst(self) [extrait de removeFirst.__doc__]
removeLast(self) removeLast(self) [extrait de removeLast.__doc__]
removeOne(self, t: PySide2.QtCore.QPoint) -> bool removeOne(self, t: PySide2.QtCore.QPoint) -> bool [extrait de removeOne.__doc__]
replace(self, i: int, t: PySide2.QtCore.QPoint) replace(self, i: int, t: PySide2.QtCore.QPoint) [extrait de replace.__doc__]
reserve(self, size: int) reserve(self, size: int) [extrait de reserve.__doc__]
resize(self, size: int) resize(self, size: int) [extrait de resize.__doc__]
setSharable(self, sharable: bool) setSharable(self, sharable: bool) [extrait de setSharable.__doc__]
shrink_to_fit(self) shrink_to_fit(self) [extrait de shrink_to_fit.__doc__]
size(self) -> int size(self) -> int [extrait de size.__doc__]
squeeze(self) squeeze(self) [extrait de squeeze.__doc__]
startsWith(self, t: PySide2.QtCore.QPoint) -> bool startsWith(self, t: PySide2.QtCore.QPoint) -> bool [extrait de startsWith.__doc__]
subtracted(self, r: PySide2.QtGui.QPolygon) -> PySide2.QtGui.QPolygon subtracted(self, r: PySide2.QtGui.QPolygon) -> PySide2.QtGui.QPolygon [extrait de subtracted.__doc__]
swap(self, other: PySide2.QtGui.QPolygon) swap(self, other: PySide2.QtGui.QPolygon) [extrait de swap.__doc__]
swapItemsAt(self, i: int, j: int) swapItemsAt(self, i: int, j: int) [extrait de swapItemsAt.__doc__]
takeAt(self, i: int) -> PySide2.QtCore.QPoint takeAt(self, i: int) -> PySide2.QtCore.QPoint [extrait de takeAt.__doc__]
takeFirst(self) -> PySide2.QtCore.QPoint takeFirst(self) -> PySide2.QtCore.QPoint [extrait de takeFirst.__doc__]
takeLast(self) -> PySide2.QtCore.QPoint takeLast(self) -> PySide2.QtCore.QPoint [extrait de takeLast.__doc__]
toList(self) -> typing.List[PySide2.QtCore.QPoint] toList(self) -> typing.List[PySide2.QtCore.QPoint] [extrait de toList.__doc__]
translate translate(self, dx: int, dy: int) [extrait de translate.__doc__]
translated translated(self, dx: int, dy: int) -> PySide2.QtGui.QPolygon [extrait de translated.__doc__]
united(self, r: PySide2.QtGui.QPolygon) -> PySide2.QtGui.QPolygon united(self, r: PySide2.QtGui.QPolygon) -> PySide2.QtGui.QPolygon [extrait de united.__doc__]
value value(self, i: int) -> PySide2.QtCore.QPoint [extrait de value.__doc__]

Méthodes héritées de la classe Object

__init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __sizeof__, __str__