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

Classe « QPixmap »

Informations générales

Héritage

builtins.object
    Object
        QPaintDevice
            QPixmap

Définition

class QPixmap(QPaintDevice):

Description [extrait de QPixmap.__doc__]

QPixmap(self) -> None
QPixmap(self, arg__1: PySide6.QtCore.QSize) -> None
QPixmap(self, arg__1: Union[PySide6.QtGui.QPixmap, PySide6.QtGui.QImage, str]) -> None
QPixmap(self, fileName: Union[str, bytes, os.PathLike], format: Optional[bytes] = None, flags: PySide6.QtCore.Qt.ImageConversionFlags = PySide6.QtCore.Qt.ImageConversionFlag.AutoColor) -> None
QPixmap(self, image: Union[PySide6.QtGui.QImage, str]) -> None
QPixmap(self, w: int, h: int) -> None
QPixmap(self, xpm: Iterable) -> 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 attributs statiques

Nom de l'attribut Valeur
PdmDepthPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDepth
PdmDevicePixelRatioPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatio
PdmDevicePixelRatioScaledPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatioScaled
PdmDpiXPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiX
PdmDpiYPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiY
PdmHeightPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeight
PdmHeightMMPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeightMM
PdmNumColorsPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmNumColors
PdmPhysicalDpiXPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiX
PdmPhysicalDpiYPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiY
PdmWidthPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidth
PdmWidthMMPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidthMM

Attributs statiques hérités de la classe QPaintDevice

painters

Liste des opérateurs

Signature de l'opérateur Description
__lshift__(self, arg__1: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream __lshift__(self, arg__1: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream [extrait de __lshift__.__doc__]
__rlshift__(self, value) Return value<<self. [extrait de __rlshift__.__doc__]
__rrshift__(self, value) Return value>>self. [extrait de __rrshift__.__doc__]
__rshift__(self, arg__1: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream __rshift__(self, arg__1: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream [extrait de __rshift__.__doc__]

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

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__]
__delattr__(self, name) Implement delattr(self, name). [extrait de __delattr__.__doc__]
__repr__(self) Return repr(self). [extrait de __repr__.__doc__]
__setattr__(self, name, value) Implement setattr(self, name, value). [extrait de __setattr__.__doc__]
cacheKey(self) -> int cacheKey(self) -> int [extrait de cacheKey.__doc__]
convertFromImage(self, img: Union[PySide6.QtGui.QImage, str], flags: PySide6.QtCore.Qt.ImageConversionFlags = PySide6.QtCore.Qt.ImageConversionFlag.AutoColor) -> bool convertFromImage(self, img: Union[PySide6.QtGui.QImage, str], flags: PySide6.QtCore.Qt.ImageConversionFlags = PySide6.QtCore.Qt.ImageConversionFlag.AutoColor) -> bool [extrait de convertFromImage.__doc__]
copy copy(self, rect: PySide6.QtCore.QRect = Default(QRect)) -> PySide6.QtGui.QPixmap [extrait de copy.__doc__]
createHeuristicMask(self, clipTight: bool = True) -> PySide6.QtGui.QBitmap createHeuristicMask(self, clipTight: bool = True) -> PySide6.QtGui.QBitmap [extrait de createHeuristicMask.__doc__]
createMaskFromColor(self, maskColor: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int], mode: PySide6.QtCore.Qt.MaskMode = PySide6.QtCore.Qt.MaskMode.MaskInColor) -> PySide6.QtGui.QBitmap createMaskFromColor(self, maskColor: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int], mode: PySide6.QtCore.Qt.MaskMode = PySide6.QtCore.Qt.MaskMode.MaskInColor) -> PySide6.QtGui.QBitmap [extrait de createMaskFromColor.__doc__]
defaultDepth() -> int defaultDepth() -> int [extrait de defaultDepth.__doc__]
depth(self) -> int depth(self) -> int [extrait de depth.__doc__]
deviceIndependentSize(self) -> PySide6.QtCore.QSizeF deviceIndependentSize(self) -> PySide6.QtCore.QSizeF [extrait de deviceIndependentSize.__doc__]
devicePixelRatio(self) -> float devicePixelRatio(self) -> float [extrait de devicePixelRatio.__doc__]
devType(self) -> int devType(self) -> int [extrait de devType.__doc__]
fill(self, fillColor: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int] = PySide6.QtCore.Qt.GlobalColor.white) -> None fill(self, fillColor: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int] = PySide6.QtCore.Qt.GlobalColor.white) -> None [extrait de fill.__doc__]
fromImage(image: Union[PySide6.QtGui.QImage, str], flags: PySide6.QtCore.Qt.ImageConversionFlags = PySide6.QtCore.Qt.ImageConversionFlag.AutoColor) -> PySide6.QtGui.QPixmap fromImage(image: Union[PySide6.QtGui.QImage, str], flags: PySide6.QtCore.Qt.ImageConversionFlags = PySide6.QtCore.Qt.ImageConversionFlag.AutoColor) -> PySide6.QtGui.QPixmap [extrait de fromImage.__doc__]
fromImageInPlace(image: Union[PySide6.QtGui.QImage, str], flags: PySide6.QtCore.Qt.ImageConversionFlags = PySide6.QtCore.Qt.ImageConversionFlag.AutoColor) -> PySide6.QtGui.QPixmap fromImageInPlace(image: Union[PySide6.QtGui.QImage, str], flags: PySide6.QtCore.Qt.ImageConversionFlags = PySide6.QtCore.Qt.ImageConversionFlag.AutoColor) -> PySide6.QtGui.QPixmap [extrait de fromImageInPlace.__doc__]
fromImageReader(imageReader: PySide6.QtGui.QImageReader, flags: PySide6.QtCore.Qt.ImageConversionFlags = PySide6.QtCore.Qt.ImageConversionFlag.AutoColor) -> PySide6.QtGui.QPixmap fromImageReader(imageReader: PySide6.QtGui.QImageReader, flags: PySide6.QtCore.Qt.ImageConversionFlags = PySide6.QtCore.Qt.ImageConversionFlag.AutoColor) -> PySide6.QtGui.QPixmap [extrait de fromImageReader.__doc__]
hasAlpha(self) -> bool hasAlpha(self) -> bool [extrait de hasAlpha.__doc__]
hasAlphaChannel(self) -> bool hasAlphaChannel(self) -> bool [extrait de hasAlphaChannel.__doc__]
height(self) -> int height(self) -> int [extrait de height.__doc__]
isNull(self) -> bool isNull(self) -> bool [extrait de isNull.__doc__]
isQBitmap(self) -> bool isQBitmap(self) -> bool [extrait de isQBitmap.__doc__]
load(self, fileName: str, format: Optional[bytes] = None, flags: PySide6.QtCore.Qt.ImageConversionFlags = PySide6.QtCore.Qt.ImageConversionFlag.AutoColor) -> bool load(self, fileName: str, format: Optional[bytes] = None, flags: PySide6.QtCore.Qt.ImageConversionFlags = PySide6.QtCore.Qt.ImageConversionFlag.AutoColor) -> bool [extrait de load.__doc__]
loadFromData loadFromData(self, buf: bytes, len: int, format: Optional[bytes] = None, flags: PySide6.QtCore.Qt.ImageConversionFlags = PySide6.QtCore.Qt.ImageConversionFlag.AutoColor) -> bool [extrait de loadFromData.__doc__]
mask(self) -> PySide6.QtGui.QBitmap mask(self) -> PySide6.QtGui.QBitmap [extrait de mask.__doc__]
metric(self, arg__1: PySide6.QtGui.QPaintDevice.PaintDeviceMetric) -> int metric(self, arg__1: PySide6.QtGui.QPaintDevice.PaintDeviceMetric) -> int [extrait de metric.__doc__]
paintEngine(self) -> PySide6.QtGui.QPaintEngine paintEngine(self) -> PySide6.QtGui.QPaintEngine [extrait de paintEngine.__doc__]
rect(self) -> PySide6.QtCore.QRect rect(self) -> PySide6.QtCore.QRect [extrait de rect.__doc__]
save save(self, device: PySide6.QtCore.QIODevice, format: Optional[bytes] = None, quality: int = -1) -> bool [extrait de save.__doc__]
scaled scaled(self, s: PySide6.QtCore.QSize, aspectMode: PySide6.QtCore.Qt.AspectRatioMode = PySide6.QtCore.Qt.AspectRatioMode.IgnoreAspectRatio, mode: PySide6.QtCore.Qt.TransformationMode = PySide6.QtCore.Qt.TransformationMode.FastTransformation) -> PySide6.QtGui.QPixmap [extrait de scaled.__doc__]
scaledToHeight(self, h: int, mode: PySide6.QtCore.Qt.TransformationMode = PySide6.QtCore.Qt.TransformationMode.FastTransformation) -> PySide6.QtGui.QPixmap scaledToHeight(self, h: int, mode: PySide6.QtCore.Qt.TransformationMode = PySide6.QtCore.Qt.TransformationMode.FastTransformation) -> PySide6.QtGui.QPixmap [extrait de scaledToHeight.__doc__]
scaledToWidth(self, w: int, mode: PySide6.QtCore.Qt.TransformationMode = PySide6.QtCore.Qt.TransformationMode.FastTransformation) -> PySide6.QtGui.QPixmap scaledToWidth(self, w: int, mode: PySide6.QtCore.Qt.TransformationMode = PySide6.QtCore.Qt.TransformationMode.FastTransformation) -> PySide6.QtGui.QPixmap [extrait de scaledToWidth.__doc__]
scroll scroll(self, dx: int, dy: int, rect: PySide6.QtCore.QRect, exposed: Union[PySide6.QtGui.QRegion, PySide6.QtGui.QBitmap, PySide6.QtGui.QPolygon, PySide6.QtCore.QRect, NoneType] = None) -> None [extrait de scroll.__doc__]
setDevicePixelRatio(self, scaleFactor: float) -> None setDevicePixelRatio(self, scaleFactor: float) -> None [extrait de setDevicePixelRatio.__doc__]
setMask(self, arg__1: Union[PySide6.QtGui.QBitmap, str]) -> None setMask(self, arg__1: Union[PySide6.QtGui.QBitmap, str]) -> None [extrait de setMask.__doc__]
size(self) -> PySide6.QtCore.QSize size(self) -> PySide6.QtCore.QSize [extrait de size.__doc__]
swap(self, other: Union[PySide6.QtGui.QPixmap, PySide6.QtGui.QImage, str]) -> None swap(self, other: Union[PySide6.QtGui.QPixmap, PySide6.QtGui.QImage, str]) -> None [extrait de swap.__doc__]
toImage(self) -> PySide6.QtGui.QImage toImage(self) -> PySide6.QtGui.QImage [extrait de toImage.__doc__]
transformed(self, arg__1: PySide6.QtGui.QTransform, mode: PySide6.QtCore.Qt.TransformationMode = PySide6.QtCore.Qt.TransformationMode.FastTransformation) -> PySide6.QtGui.QPixmap transformed(self, arg__1: PySide6.QtGui.QTransform, mode: PySide6.QtCore.Qt.TransformationMode = PySide6.QtCore.Qt.TransformationMode.FastTransformation) -> PySide6.QtGui.QPixmap [extrait de transformed.__doc__]
trueMatrix(m: PySide6.QtGui.QTransform, w: int, h: int) -> PySide6.QtGui.QTransform trueMatrix(m: PySide6.QtGui.QTransform, w: int, h: int) -> PySide6.QtGui.QTransform [extrait de trueMatrix.__doc__]
width(self) -> int width(self) -> int [extrait de width.__doc__]

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

__init_subclass__, __subclasshook__, colorCount, devicePixelRatioF, devicePixelRatioFScale, heightMM, initPainter, logicalDpiX, logicalDpiY, PaintDeviceMetric, paintingActive, physicalDpiX, physicalDpiY, redirected, sharedPainter, widthMM

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

__getattribute__, __init_subclass__, __subclasshook__

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

__dir__, __format__, __hash__, __reduce__, __reduce_ex__, __sizeof__, __str__