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

Classe « QRectF »

Informations générales

Héritage

builtins.object
    Object
        QRectF

Définition

class QRectF(Object):

Description [extrait de QRectF.__doc__]

QRectF(self)
QRectF(self, QRectF: PySide2.QtCore.QRectF)
QRectF(self, left: float, top: float, width: float, height: float)
QRectF(self, rect: PySide2.QtCore.QRect)
QRectF(self, topleft: PySide2.QtCore.QPointF, bottomRight: PySide2.QtCore.QPointF)
QRectF(self, topleft: PySide2.QtCore.QPointF, size: PySide2.QtCore.QSizeF)

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__ __add__(self, lhs: PySide2.QtCore.QMarginsF) -> PySide2.QtCore.QRectF [extrait de __add__.__doc__]
__and__(self, r: PySide2.QtCore.QRectF) -> PySide2.QtCore.QRectF __and__(self, r: PySide2.QtCore.QRectF) -> PySide2.QtCore.QRectF [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: PySide2.QtCore.QMarginsF) -> PySide2.QtCore.QRectF __iadd__(self, margins: PySide2.QtCore.QMarginsF) -> PySide2.QtCore.QRectF [extrait de __iadd__.__doc__]
__iand__(self, r: PySide2.QtCore.QRectF) -> PySide2.QtCore.QRectF __iand__(self, r: PySide2.QtCore.QRectF) -> PySide2.QtCore.QRectF [extrait de __iand__.__doc__]
__ior__(self, r: PySide2.QtCore.QRectF) -> PySide2.QtCore.QRectF __ior__(self, r: PySide2.QtCore.QRectF) -> PySide2.QtCore.QRectF [extrait de __ior__.__doc__]
__isub__(self, margins: PySide2.QtCore.QMarginsF) -> PySide2.QtCore.QRectF __isub__(self, margins: PySide2.QtCore.QMarginsF) -> PySide2.QtCore.QRectF [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: PySide2.QtCore.QRectF) -> PySide2.QtCore.QRectF __or__(self, r: PySide2.QtCore.QRectF) -> PySide2.QtCore.QRectF [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: PySide2.QtCore.QMarginsF) -> PySide2.QtCore.QRectF __sub__(self, rhs: PySide2.QtCore.QMarginsF) -> PySide2.QtCore.QRectF [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__(self) __copy__(self) [extrait de __copy__.__doc__]
__reduce__(self) -> object __reduce__(self) -> object [extrait de __reduce__.__doc__]
__repr__(self) -> object __repr__(self) -> object [extrait de __repr__.__doc__]
adjust(self, x1: float, y1: float, x2: float, y2: float) adjust(self, x1: float, y1: float, x2: float, y2: float) [extrait de adjust.__doc__]
adjusted(self, x1: float, y1: float, x2: float, y2: float) -> PySide2.QtCore.QRectF adjusted(self, x1: float, y1: float, x2: float, y2: float) -> PySide2.QtCore.QRectF [extrait de adjusted.__doc__]
bottom(self) -> float bottom(self) -> float [extrait de bottom.__doc__]
bottomLeft(self) -> PySide2.QtCore.QPointF bottomLeft(self) -> PySide2.QtCore.QPointF [extrait de bottomLeft.__doc__]
bottomRight(self) -> PySide2.QtCore.QPointF bottomRight(self) -> PySide2.QtCore.QPointF [extrait de bottomRight.__doc__]
center(self) -> PySide2.QtCore.QPointF center(self) -> PySide2.QtCore.QPointF [extrait de center.__doc__]
contains contains(self, p: PySide2.QtCore.QPointF) -> bool [extrait de contains.__doc__]
getCoords(self) -> typing.Tuple[float, float, float, float] getCoords(self) -> typing.Tuple[float, float, float, float] [extrait de getCoords.__doc__]
getRect(self) -> typing.Tuple[float, float, float, float] getRect(self) -> typing.Tuple[float, float, float, float] [extrait de getRect.__doc__]
height(self) -> float height(self) -> float [extrait de height.__doc__]
intersected(self, other: PySide2.QtCore.QRectF) -> PySide2.QtCore.QRectF intersected(self, other: PySide2.QtCore.QRectF) -> PySide2.QtCore.QRectF [extrait de intersected.__doc__]
intersects(self, r: PySide2.QtCore.QRectF) -> bool intersects(self, r: PySide2.QtCore.QRectF) -> 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) -> float left(self) -> float [extrait de left.__doc__]
marginsAdded(self, margins: PySide2.QtCore.QMarginsF) -> PySide2.QtCore.QRectF marginsAdded(self, margins: PySide2.QtCore.QMarginsF) -> PySide2.QtCore.QRectF [extrait de marginsAdded.__doc__]
marginsRemoved(self, margins: PySide2.QtCore.QMarginsF) -> PySide2.QtCore.QRectF marginsRemoved(self, margins: PySide2.QtCore.QMarginsF) -> PySide2.QtCore.QRectF [extrait de marginsRemoved.__doc__]
moveBottom(self, pos: float) moveBottom(self, pos: float) [extrait de moveBottom.__doc__]
moveBottomLeft(self, p: PySide2.QtCore.QPointF) moveBottomLeft(self, p: PySide2.QtCore.QPointF) [extrait de moveBottomLeft.__doc__]
moveBottomRight(self, p: PySide2.QtCore.QPointF) moveBottomRight(self, p: PySide2.QtCore.QPointF) [extrait de moveBottomRight.__doc__]
moveCenter(self, p: PySide2.QtCore.QPointF) moveCenter(self, p: PySide2.QtCore.QPointF) [extrait de moveCenter.__doc__]
moveLeft(self, pos: float) moveLeft(self, pos: float) [extrait de moveLeft.__doc__]
moveRight(self, pos: float) moveRight(self, pos: float) [extrait de moveRight.__doc__]
moveTo moveTo(self, p: PySide2.QtCore.QPointF) [extrait de moveTo.__doc__]
moveTop(self, pos: float) moveTop(self, pos: float) [extrait de moveTop.__doc__]
moveTopLeft(self, p: PySide2.QtCore.QPointF) moveTopLeft(self, p: PySide2.QtCore.QPointF) [extrait de moveTopLeft.__doc__]
moveTopRight(self, p: PySide2.QtCore.QPointF) moveTopRight(self, p: PySide2.QtCore.QPointF) [extrait de moveTopRight.__doc__]
normalized(self) -> PySide2.QtCore.QRectF normalized(self) -> PySide2.QtCore.QRectF [extrait de normalized.__doc__]
right(self) -> float right(self) -> float [extrait de right.__doc__]
setBottom(self, pos: float) setBottom(self, pos: float) [extrait de setBottom.__doc__]
setBottomLeft(self, p: PySide2.QtCore.QPointF) setBottomLeft(self, p: PySide2.QtCore.QPointF) [extrait de setBottomLeft.__doc__]
setBottomRight(self, p: PySide2.QtCore.QPointF) setBottomRight(self, p: PySide2.QtCore.QPointF) [extrait de setBottomRight.__doc__]
setCoords(self, x1: float, y1: float, x2: float, y2: float) setCoords(self, x1: float, y1: float, x2: float, y2: float) [extrait de setCoords.__doc__]
setHeight(self, h: float) setHeight(self, h: float) [extrait de setHeight.__doc__]
setLeft(self, pos: float) setLeft(self, pos: float) [extrait de setLeft.__doc__]
setRect(self, x: float, y: float, w: float, h: float) setRect(self, x: float, y: float, w: float, h: float) [extrait de setRect.__doc__]
setRight(self, pos: float) setRight(self, pos: float) [extrait de setRight.__doc__]
setSize(self, s: PySide2.QtCore.QSizeF) setSize(self, s: PySide2.QtCore.QSizeF) [extrait de setSize.__doc__]
setTop(self, pos: float) setTop(self, pos: float) [extrait de setTop.__doc__]
setTopLeft(self, p: PySide2.QtCore.QPointF) setTopLeft(self, p: PySide2.QtCore.QPointF) [extrait de setTopLeft.__doc__]
setTopRight(self, p: PySide2.QtCore.QPointF) setTopRight(self, p: PySide2.QtCore.QPointF) [extrait de setTopRight.__doc__]
setWidth(self, w: float) setWidth(self, w: float) [extrait de setWidth.__doc__]
setX(self, pos: float) setX(self, pos: float) [extrait de setX.__doc__]
setY(self, pos: float) setY(self, pos: float) [extrait de setY.__doc__]
size(self) -> PySide2.QtCore.QSizeF size(self) -> PySide2.QtCore.QSizeF [extrait de size.__doc__]
toAlignedRect(self) -> PySide2.QtCore.QRect toAlignedRect(self) -> PySide2.QtCore.QRect [extrait de toAlignedRect.__doc__]
top(self) -> float top(self) -> float [extrait de top.__doc__]
topLeft(self) -> PySide2.QtCore.QPointF topLeft(self) -> PySide2.QtCore.QPointF [extrait de topLeft.__doc__]
topRight(self) -> PySide2.QtCore.QPointF topRight(self) -> PySide2.QtCore.QPointF [extrait de topRight.__doc__]
toRect(self) -> PySide2.QtCore.QRect toRect(self) -> PySide2.QtCore.QRect [extrait de toRect.__doc__]
translate translate(self, dx: float, dy: float) [extrait de translate.__doc__]
translated translated(self, dx: float, dy: float) -> PySide2.QtCore.QRectF [extrait de translated.__doc__]
transposed(self) -> PySide2.QtCore.QRectF transposed(self) -> PySide2.QtCore.QRectF [extrait de transposed.__doc__]
united(self, other: PySide2.QtCore.QRectF) -> PySide2.QtCore.QRectF united(self, other: PySide2.QtCore.QRectF) -> PySide2.QtCore.QRectF [extrait de united.__doc__]
width(self) -> float width(self) -> float [extrait de width.__doc__]
x(self) -> float x(self) -> float [extrait de x.__doc__]
y(self) -> float y(self) -> float [extrait de y.__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__