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 « PySide6.QtCore »

Classe « QRect »

Informations générales

Héritage

builtins.object
    Object
        QRect

Définition

class QRect(Object):

Description [extrait de QRect.__doc__]

QRect(self) -> None
QRect(self, QRect: PySide6.QtCore.QRect) -> None
QRect(self, left: int, top: int, width: int, height: int) -> None
QRect(self, topleft: PySide6.QtCore.QPoint, bottomright: PySide6.QtCore.QPoint) -> None
QRect(self, topleft: PySide6.QtCore.QPoint, size: PySide6.QtCore.QSize) -> None

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__]

Liste des opérateurs

Signature de l'opérateur Description
__add__(self, margins: PySide6.QtCore.QMargins) -> PySide6.QtCore.QRect __add__(self, margins: PySide6.QtCore.QMargins) -> PySide6.QtCore.QRect [extrait de __add__.__doc__]
__and__(self, r: PySide6.QtCore.QRect) -> PySide6.QtCore.QRect __and__(self, r: PySide6.QtCore.QRect) -> PySide6.QtCore.QRect [extrait de __and__.__doc__]
__eq__(self, value) Return self==value. [extrait de __eq__.__doc__]
__ge__(self, value) Return self>=value. [extrait de __ge__.__doc__]
__gt__(self, value) Return self>value. [extrait de __gt__.__doc__]
__iadd__(self, margins: PySide6.QtCore.QMargins) -> PySide6.QtCore.QRect __iadd__(self, margins: PySide6.QtCore.QMargins) -> PySide6.QtCore.QRect [extrait de __iadd__.__doc__]
__iand__(self, r: PySide6.QtCore.QRect) -> PySide6.QtCore.QRect __iand__(self, r: PySide6.QtCore.QRect) -> PySide6.QtCore.QRect [extrait de __iand__.__doc__]
__ior__(self, r: PySide6.QtCore.QRect) -> PySide6.QtCore.QRect __ior__(self, r: PySide6.QtCore.QRect) -> PySide6.QtCore.QRect [extrait de __ior__.__doc__]
__isub__(self, margins: PySide6.QtCore.QMargins) -> PySide6.QtCore.QRect __isub__(self, margins: PySide6.QtCore.QMargins) -> PySide6.QtCore.QRect [extrait de __isub__.__doc__]
__le__(self, value) Return self<=value. [extrait de __le__.__doc__]
__lt__(self, value) Return self<value. [extrait de __lt__.__doc__]
__ne__(self, value) Return self!=value. [extrait de __ne__.__doc__]
__or__(self, r: PySide6.QtCore.QRect) -> PySide6.QtCore.QRect __or__(self, r: PySide6.QtCore.QRect) -> PySide6.QtCore.QRect [extrait de __or__.__doc__]
__radd__(self, value) Return value+self. [extrait de __radd__.__doc__]
__rand__(self, value) Return value&self. [extrait de __rand__.__doc__]
__ror__(self, value) Return value|self. [extrait de __ror__.__doc__]
__rsub__(self, value) Return value-self. [extrait de __rsub__.__doc__]
__sub__(self, rhs: PySide6.QtCore.QMargins) -> PySide6.QtCore.QRect __sub__(self, rhs: PySide6.QtCore.QMargins) -> PySide6.QtCore.QRect [extrait de __sub__.__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
__bool__(self) self != 0 [extrait de __bool__.__doc__]
__copy__() -> None __copy__() -> None [extrait de __copy__.__doc__]
__hash__(self) Return hash(self). [extrait de __hash__.__doc__]
__reduce__(self) -> object __reduce__(self) -> object [extrait de __reduce__.__doc__]
__repr__(self) -> object __repr__(self) -> object [extrait de __repr__.__doc__]
adjust(self, x1: int, y1: int, x2: int, y2: int) -> None adjust(self, x1: int, y1: int, x2: int, y2: int) -> None [extrait de adjust.__doc__]
adjusted(self, x1: int, y1: int, x2: int, y2: int) -> PySide6.QtCore.QRect adjusted(self, x1: int, y1: int, x2: int, y2: int) -> PySide6.QtCore.QRect [extrait de adjusted.__doc__]
bottom(self) -> int bottom(self) -> int [extrait de bottom.__doc__]
bottomLeft(self) -> PySide6.QtCore.QPoint bottomLeft(self) -> PySide6.QtCore.QPoint [extrait de bottomLeft.__doc__]
bottomRight(self) -> PySide6.QtCore.QPoint bottomRight(self) -> PySide6.QtCore.QPoint [extrait de bottomRight.__doc__]
center(self) -> PySide6.QtCore.QPoint center(self) -> PySide6.QtCore.QPoint [extrait de center.__doc__]
contains contains(self, p: PySide6.QtCore.QPoint, proper: bool = False) -> bool [extrait de contains.__doc__]
getCoords(self) -> Tuple[int, int, int, int] getCoords(self) -> Tuple[int, int, int, int] [extrait de getCoords.__doc__]
getRect(self) -> Tuple[int, int, int, int] getRect(self) -> Tuple[int, int, int, int] [extrait de getRect.__doc__]
height(self) -> int height(self) -> int [extrait de height.__doc__]
intersected(self, other: PySide6.QtCore.QRect) -> PySide6.QtCore.QRect intersected(self, other: PySide6.QtCore.QRect) -> PySide6.QtCore.QRect [extrait de intersected.__doc__]
intersects(self, r: PySide6.QtCore.QRect) -> bool intersects(self, r: PySide6.QtCore.QRect) -> bool [extrait de intersects.__doc__]
isEmpty(self) -> bool isEmpty(self) -> bool [extrait de isEmpty.__doc__]
isNull(self) -> bool isNull(self) -> bool [extrait de isNull.__doc__]
isValid(self) -> bool isValid(self) -> bool [extrait de isValid.__doc__]
left(self) -> int left(self) -> int [extrait de left.__doc__]
marginsAdded(self, margins: PySide6.QtCore.QMargins) -> PySide6.QtCore.QRect marginsAdded(self, margins: PySide6.QtCore.QMargins) -> PySide6.QtCore.QRect [extrait de marginsAdded.__doc__]
marginsRemoved(self, margins: PySide6.QtCore.QMargins) -> PySide6.QtCore.QRect marginsRemoved(self, margins: PySide6.QtCore.QMargins) -> PySide6.QtCore.QRect [extrait de marginsRemoved.__doc__]
moveBottom(self, pos: int) -> None moveBottom(self, pos: int) -> None [extrait de moveBottom.__doc__]
moveBottomLeft(self, p: PySide6.QtCore.QPoint) -> None moveBottomLeft(self, p: PySide6.QtCore.QPoint) -> None [extrait de moveBottomLeft.__doc__]
moveBottomRight(self, p: PySide6.QtCore.QPoint) -> None moveBottomRight(self, p: PySide6.QtCore.QPoint) -> None [extrait de moveBottomRight.__doc__]
moveCenter(self, p: PySide6.QtCore.QPoint) -> None moveCenter(self, p: PySide6.QtCore.QPoint) -> None [extrait de moveCenter.__doc__]
moveLeft(self, pos: int) -> None moveLeft(self, pos: int) -> None [extrait de moveLeft.__doc__]
moveRight(self, pos: int) -> None moveRight(self, pos: int) -> None [extrait de moveRight.__doc__]
moveTo moveTo(self, p: PySide6.QtCore.QPoint) -> None [extrait de moveTo.__doc__]
moveTop(self, pos: int) -> None moveTop(self, pos: int) -> None [extrait de moveTop.__doc__]
moveTopLeft(self, p: PySide6.QtCore.QPoint) -> None moveTopLeft(self, p: PySide6.QtCore.QPoint) -> None [extrait de moveTopLeft.__doc__]
moveTopRight(self, p: PySide6.QtCore.QPoint) -> None moveTopRight(self, p: PySide6.QtCore.QPoint) -> None [extrait de moveTopRight.__doc__]
normalized(self) -> PySide6.QtCore.QRect normalized(self) -> PySide6.QtCore.QRect [extrait de normalized.__doc__]
right(self) -> int right(self) -> int [extrait de right.__doc__]
setBottom(self, pos: int) -> None setBottom(self, pos: int) -> None [extrait de setBottom.__doc__]
setBottomLeft(self, p: PySide6.QtCore.QPoint) -> None setBottomLeft(self, p: PySide6.QtCore.QPoint) -> None [extrait de setBottomLeft.__doc__]
setBottomRight(self, p: PySide6.QtCore.QPoint) -> None setBottomRight(self, p: PySide6.QtCore.QPoint) -> None [extrait de setBottomRight.__doc__]
setCoords(self, x1: int, y1: int, x2: int, y2: int) -> None setCoords(self, x1: int, y1: int, x2: int, y2: int) -> None [extrait de setCoords.__doc__]
setHeight(self, h: int) -> None setHeight(self, h: int) -> None [extrait de setHeight.__doc__]
setLeft(self, pos: int) -> None setLeft(self, pos: int) -> None [extrait de setLeft.__doc__]
setRect(self, x: int, y: int, w: int, h: int) -> None setRect(self, x: int, y: int, w: int, h: int) -> None [extrait de setRect.__doc__]
setRight(self, pos: int) -> None setRight(self, pos: int) -> None [extrait de setRight.__doc__]
setSize(self, s: PySide6.QtCore.QSize) -> None setSize(self, s: PySide6.QtCore.QSize) -> None [extrait de setSize.__doc__]
setTop(self, pos: int) -> None setTop(self, pos: int) -> None [extrait de setTop.__doc__]
setTopLeft(self, p: PySide6.QtCore.QPoint) -> None setTopLeft(self, p: PySide6.QtCore.QPoint) -> None [extrait de setTopLeft.__doc__]
setTopRight(self, p: PySide6.QtCore.QPoint) -> None setTopRight(self, p: PySide6.QtCore.QPoint) -> None [extrait de setTopRight.__doc__]
setWidth(self, w: int) -> None setWidth(self, w: int) -> None [extrait de setWidth.__doc__]
setX(self, x: int) -> None setX(self, x: int) -> None [extrait de setX.__doc__]
setY(self, y: int) -> None setY(self, y: int) -> None [extrait de setY.__doc__]
size(self) -> PySide6.QtCore.QSize size(self) -> PySide6.QtCore.QSize [extrait de size.__doc__]
span(p1: PySide6.QtCore.QPoint, p2: PySide6.QtCore.QPoint) -> PySide6.QtCore.QRect span(p1: PySide6.QtCore.QPoint, p2: PySide6.QtCore.QPoint) -> PySide6.QtCore.QRect [extrait de span.__doc__]
top(self) -> int top(self) -> int [extrait de top.__doc__]
topLeft(self) -> PySide6.QtCore.QPoint topLeft(self) -> PySide6.QtCore.QPoint [extrait de topLeft.__doc__]
topRight(self) -> PySide6.QtCore.QPoint topRight(self) -> PySide6.QtCore.QPoint [extrait de topRight.__doc__]
translate translate(self, dx: int, dy: int) -> None [extrait de translate.__doc__]
translated translated(self, dx: int, dy: int) -> PySide6.QtCore.QRect [extrait de translated.__doc__]
transposed(self) -> PySide6.QtCore.QRect transposed(self) -> PySide6.QtCore.QRect [extrait de transposed.__doc__]
united(self, other: PySide6.QtCore.QRect) -> PySide6.QtCore.QRect united(self, other: PySide6.QtCore.QRect) -> PySide6.QtCore.QRect [extrait de united.__doc__]
width(self) -> int width(self) -> int [extrait de width.__doc__]
x(self) -> int x(self) -> int [extrait de x.__doc__]
y(self) -> int y(self) -> int [extrait de y.__doc__]

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

__delattr__, __getattribute__, __init_subclass__, __setattr__, __subclasshook__

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

__dir__, __format__, __reduce_ex__, __sizeof__, __str__