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 « QIcon »

Informations générales

Héritage

builtins.object
    Object
        QIcon

Définition

class QIcon(Object):

Description [extrait de QIcon.__doc__]

QIcon(self) -> None
QIcon(self, engine: PySide6.QtGui.QIconEngine) -> None
QIcon(self, fileName: str) -> None
QIcon(self, other: Union[PySide6.QtGui.QIcon, PySide6.QtGui.QPixmap]) -> None
QIcon(self, pixmap: Union[PySide6.QtGui.QPixmap, PySide6.QtGui.QImage, str]) -> 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
ActivePySide6.QtGui.QIcon.Mode.Active
DisabledPySide6.QtGui.QIcon.Mode.Disabled
NormalPySide6.QtGui.QIcon.Mode.Normal
OffPySide6.QtGui.QIcon.State.Off
OnPySide6.QtGui.QIcon.State.On
SelectedPySide6.QtGui.QIcon.Mode.Selected

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__]
__repr__(self) Return repr(self). [extrait de __repr__.__doc__]
actualSize actualSize(self, size: PySide6.QtCore.QSize, mode: PySide6.QtGui.QIcon.Mode = PySide6.QtGui.QIcon.Mode.Normal, state: PySide6.QtGui.QIcon.State = PySide6.QtGui.QIcon.State.Off) -> PySide6.QtCore.QSize [extrait de actualSize.__doc__]
addFile(self, fileName: str, size: PySide6.QtCore.QSize = Default(QSize), mode: PySide6.QtGui.QIcon.Mode = PySide6.QtGui.QIcon.Mode.Normal, state: PySide6.QtGui.QIcon.State = PySide6.QtGui.QIcon.State.Off) -> None addFile(self, fileName: str, size: PySide6.QtCore.QSize = Default(QSize), mode: PySide6.QtGui.QIcon.Mode = PySide6.QtGui.QIcon.Mode.Normal, state: PySide6.QtGui.QIcon.State = PySide6.QtGui.QIcon.State.Off) -> None [extrait de addFile.__doc__]
addPixmap(self, pixmap: Union[PySide6.QtGui.QPixmap, PySide6.QtGui.QImage, str], mode: PySide6.QtGui.QIcon.Mode = PySide6.QtGui.QIcon.Mode.Normal, state: PySide6.QtGui.QIcon.State = PySide6.QtGui.QIcon.State.Off) -> None addPixmap(self, pixmap: Union[PySide6.QtGui.QPixmap, PySide6.QtGui.QImage, str], mode: PySide6.QtGui.QIcon.Mode = PySide6.QtGui.QIcon.Mode.Normal, state: PySide6.QtGui.QIcon.State = PySide6.QtGui.QIcon.State.Off) -> None [extrait de addPixmap.__doc__]
availableSizes(self, mode: PySide6.QtGui.QIcon.Mode = PySide6.QtGui.QIcon.Mode.Normal, state: PySide6.QtGui.QIcon.State = PySide6.QtGui.QIcon.State.Off) -> List[PySide6.QtCore.QSize] availableSizes(self, mode: PySide6.QtGui.QIcon.Mode = PySide6.QtGui.QIcon.Mode.Normal, state: PySide6.QtGui.QIcon.State = PySide6.QtGui.QIcon.State.Off) -> List[PySide6.QtCore.QSize] [extrait de availableSizes.__doc__]
cacheKey(self) -> int cacheKey(self) -> int [extrait de cacheKey.__doc__]
fallbackSearchPaths() -> List[str] fallbackSearchPaths() -> List[str] [extrait de fallbackSearchPaths.__doc__]
fallbackThemeName() -> str fallbackThemeName() -> str [extrait de fallbackThemeName.__doc__]
fromTheme fromTheme(name: str) -> PySide6.QtGui.QIcon [extrait de fromTheme.__doc__]
hasThemeIcon(name: str) -> bool hasThemeIcon(name: str) -> bool [extrait de hasThemeIcon.__doc__]
isMask(self) -> bool isMask(self) -> bool [extrait de isMask.__doc__]
isNull(self) -> bool isNull(self) -> bool [extrait de isNull.__doc__]
Mode
name(self) -> str name(self) -> str [extrait de name.__doc__]
paint paint(self, painter: PySide6.QtGui.QPainter, rect: PySide6.QtCore.QRect, alignment: PySide6.QtCore.Qt.Alignment = PySide6.QtCore.Qt.AlignmentFlag.AlignCenter, mode: PySide6.QtGui.QIcon.Mode = PySide6.QtGui.QIcon.Mode.Normal, state: PySide6.QtGui.QIcon.State = PySide6.QtGui.QIcon.State.Off) -> None [extrait de paint.__doc__]
pixmap pixmap(self, extent: int, mode: PySide6.QtGui.QIcon.Mode = PySide6.QtGui.QIcon.Mode.Normal, state: PySide6.QtGui.QIcon.State = PySide6.QtGui.QIcon.State.Off) -> PySide6.QtGui.QPixmap [extrait de pixmap.__doc__]
setFallbackSearchPaths(paths: Sequence[str]) -> None setFallbackSearchPaths(paths: Sequence[str]) -> None [extrait de setFallbackSearchPaths.__doc__]
setFallbackThemeName(name: str) -> None setFallbackThemeName(name: str) -> None [extrait de setFallbackThemeName.__doc__]
setIsMask(self, isMask: bool) -> None setIsMask(self, isMask: bool) -> None [extrait de setIsMask.__doc__]
setThemeName(path: str) -> None setThemeName(path: str) -> None [extrait de setThemeName.__doc__]
setThemeSearchPaths(searchpath: Sequence[str]) -> None setThemeSearchPaths(searchpath: Sequence[str]) -> None [extrait de setThemeSearchPaths.__doc__]
State
swap(self, other: Union[PySide6.QtGui.QIcon, PySide6.QtGui.QPixmap]) -> None swap(self, other: Union[PySide6.QtGui.QIcon, PySide6.QtGui.QPixmap]) -> None [extrait de swap.__doc__]
themeName() -> str themeName() -> str [extrait de themeName.__doc__]
themeSearchPaths() -> List[str] themeSearchPaths() -> List[str] [extrait de themeSearchPaths.__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__, __hash__, __reduce__, __reduce_ex__, __sizeof__, __str__