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

Informations générales

Héritage

builtins.object
    Object
        QPalette

Définition

class QPalette(Object):

Description [extrait de QPalette.__doc__]

QPalette(self) -> None
QPalette(self, button: PySide6.QtCore.Qt.GlobalColor) -> None
QPalette(self, button: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int]) -> None
QPalette(self, button: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int], window: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int]) -> None
QPalette(self, palette: Union[PySide6.QtGui.QPalette, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor]) -> None
QPalette(self, windowText: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], button: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], light: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], dark: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], mid: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], text: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], bright_text: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], base: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], window: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap]) -> None
QPalette(self, windowText: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int], window: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int], light: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int], dark: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int], mid: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int], text: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int], base: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int]) -> 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.QPalette.ColorGroup.Active
AllPySide6.QtGui.QPalette.ColorGroup.All
AlternateBasePySide6.QtGui.QPalette.ColorRole.AlternateBase
BasePySide6.QtGui.QPalette.ColorRole.Base
BrightTextPySide6.QtGui.QPalette.ColorRole.BrightText
ButtonPySide6.QtGui.QPalette.ColorRole.Button
ButtonTextPySide6.QtGui.QPalette.ColorRole.ButtonText
CurrentPySide6.QtGui.QPalette.ColorGroup.Current
DarkPySide6.QtGui.QPalette.ColorRole.Dark
DisabledPySide6.QtGui.QPalette.ColorGroup.Disabled
HighlightPySide6.QtGui.QPalette.ColorRole.Highlight
HighlightedTextPySide6.QtGui.QPalette.ColorRole.HighlightedText
InactivePySide6.QtGui.QPalette.ColorGroup.Inactive
LightPySide6.QtGui.QPalette.ColorRole.Light
LinkPySide6.QtGui.QPalette.ColorRole.Link
LinkVisitedPySide6.QtGui.QPalette.ColorRole.LinkVisited
MidPySide6.QtGui.QPalette.ColorRole.Mid
MidlightPySide6.QtGui.QPalette.ColorRole.Midlight
NColorGroupsPySide6.QtGui.QPalette.ColorGroup.NColorGroups
NColorRolesPySide6.QtGui.QPalette.ColorRole.NColorRoles
NormalPySide6.QtGui.QPalette.ColorGroup.Normal
NoRolePySide6.QtGui.QPalette.ColorRole.NoRole
PlaceholderTextPySide6.QtGui.QPalette.ColorRole.PlaceholderText
ShadowPySide6.QtGui.QPalette.ColorRole.Shadow
TextPySide6.QtGui.QPalette.ColorRole.Text
ToolTipBasePySide6.QtGui.QPalette.ColorRole.ToolTipBase
ToolTipTextPySide6.QtGui.QPalette.ColorRole.ToolTipText
WindowPySide6.QtGui.QPalette.ColorRole.Window
WindowTextPySide6.QtGui.QPalette.ColorRole.WindowText

Liste des opérateurs

Signature de l'opérateur Description
__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__]
__le__(self, value) Return self<=value. [extrait de __le__.__doc__]
__lshift__(self, ds: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream __lshift__(self, ds: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream [extrait de __lshift__.__doc__]
__lt__(self, value) Return self<value. [extrait de __lt__.__doc__]
__ne__(self, value) Return self!=value. [extrait de __ne__.__doc__]
__rlshift__(self, value) Return value<<self. [extrait de __rlshift__.__doc__]
__rrshift__(self, value) Return value>>self. [extrait de __rrshift__.__doc__]
__rshift__(self, ds: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream __rshift__(self, ds: PySide6.QtCore.QDataStream) -> PySide6.QtCore.QDataStream [extrait de __rshift__.__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__() -> None __copy__() -> None [extrait de __copy__.__doc__]
__repr__(self) Return repr(self). [extrait de __repr__.__doc__]
alternateBase(self) -> PySide6.QtGui.QBrush alternateBase(self) -> PySide6.QtGui.QBrush [extrait de alternateBase.__doc__]
base(self) -> PySide6.QtGui.QBrush base(self) -> PySide6.QtGui.QBrush [extrait de base.__doc__]
brightText(self) -> PySide6.QtGui.QBrush brightText(self) -> PySide6.QtGui.QBrush [extrait de brightText.__doc__]
brush brush(self, cg: PySide6.QtGui.QPalette.ColorGroup, cr: PySide6.QtGui.QPalette.ColorRole) -> PySide6.QtGui.QBrush [extrait de brush.__doc__]
button(self) -> PySide6.QtGui.QBrush button(self) -> PySide6.QtGui.QBrush [extrait de button.__doc__]
buttonText(self) -> PySide6.QtGui.QBrush buttonText(self) -> PySide6.QtGui.QBrush [extrait de buttonText.__doc__]
cacheKey(self) -> int cacheKey(self) -> int [extrait de cacheKey.__doc__]
color color(self, cg: PySide6.QtGui.QPalette.ColorGroup, cr: PySide6.QtGui.QPalette.ColorRole) -> PySide6.QtGui.QColor [extrait de color.__doc__]
ColorGroup
ColorRole
currentColorGroup(self) -> PySide6.QtGui.QPalette.ColorGroup currentColorGroup(self) -> PySide6.QtGui.QPalette.ColorGroup [extrait de currentColorGroup.__doc__]
dark(self) -> PySide6.QtGui.QBrush dark(self) -> PySide6.QtGui.QBrush [extrait de dark.__doc__]
highlight(self) -> PySide6.QtGui.QBrush highlight(self) -> PySide6.QtGui.QBrush [extrait de highlight.__doc__]
highlightedText(self) -> PySide6.QtGui.QBrush highlightedText(self) -> PySide6.QtGui.QBrush [extrait de highlightedText.__doc__]
isBrushSet(self, cg: PySide6.QtGui.QPalette.ColorGroup, cr: PySide6.QtGui.QPalette.ColorRole) -> bool isBrushSet(self, cg: PySide6.QtGui.QPalette.ColorGroup, cr: PySide6.QtGui.QPalette.ColorRole) -> bool [extrait de isBrushSet.__doc__]
isCopyOf(self, p: Union[PySide6.QtGui.QPalette, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor]) -> bool isCopyOf(self, p: Union[PySide6.QtGui.QPalette, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor]) -> bool [extrait de isCopyOf.__doc__]
isEqual(self, cr1: PySide6.QtGui.QPalette.ColorGroup, cr2: PySide6.QtGui.QPalette.ColorGroup) -> bool isEqual(self, cr1: PySide6.QtGui.QPalette.ColorGroup, cr2: PySide6.QtGui.QPalette.ColorGroup) -> bool [extrait de isEqual.__doc__]
light(self) -> PySide6.QtGui.QBrush light(self) -> PySide6.QtGui.QBrush [extrait de light.__doc__]
link(self) -> PySide6.QtGui.QBrush link(self) -> PySide6.QtGui.QBrush [extrait de link.__doc__]
linkVisited(self) -> PySide6.QtGui.QBrush linkVisited(self) -> PySide6.QtGui.QBrush [extrait de linkVisited.__doc__]
mid(self) -> PySide6.QtGui.QBrush mid(self) -> PySide6.QtGui.QBrush [extrait de mid.__doc__]
midlight(self) -> PySide6.QtGui.QBrush midlight(self) -> PySide6.QtGui.QBrush [extrait de midlight.__doc__]
placeholderText(self) -> PySide6.QtGui.QBrush placeholderText(self) -> PySide6.QtGui.QBrush [extrait de placeholderText.__doc__]
resolve(self, other: Union[PySide6.QtGui.QPalette, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor]) -> PySide6.QtGui.QPalette resolve(self, other: Union[PySide6.QtGui.QPalette, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor]) -> PySide6.QtGui.QPalette [extrait de resolve.__doc__]
resolveMask(self) -> int resolveMask(self) -> int [extrait de resolveMask.__doc__]
setBrush setBrush(self, cg: PySide6.QtGui.QPalette.ColorGroup, cr: PySide6.QtGui.QPalette.ColorRole, brush: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap]) -> None [extrait de setBrush.__doc__]
setColor setColor(self, cg: PySide6.QtGui.QPalette.ColorGroup, cr: PySide6.QtGui.QPalette.ColorRole, color: Union[PySide6.QtGui.QColor, PySide6.QtGui.QRgba64, Any, PySide6.QtCore.Qt.GlobalColor, str, int]) -> None [extrait de setColor.__doc__]
setColorGroup(self, cr: PySide6.QtGui.QPalette.ColorGroup, windowText: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], button: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], light: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], dark: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], mid: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], text: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], bright_text: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], base: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], window: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap]) -> None setColorGroup(self, cr: PySide6.QtGui.QPalette.ColorGroup, windowText: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], button: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], light: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], dark: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], mid: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], text: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], bright_text: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], base: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap], window: Union[PySide6.QtGui.QBrush, PySide6.QtCore.Qt.BrushStyle, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor, PySide6.QtGui.QGradient, PySide6.QtGui.QImage, PySide6.QtGui.QPixmap]) -> None [extrait de setColorGroup.__doc__]
setCurrentColorGroup(self, cg: PySide6.QtGui.QPalette.ColorGroup) -> None setCurrentColorGroup(self, cg: PySide6.QtGui.QPalette.ColorGroup) -> None [extrait de setCurrentColorGroup.__doc__]
setResolveMask(self, mask: int) -> None setResolveMask(self, mask: int) -> None [extrait de setResolveMask.__doc__]
shadow(self) -> PySide6.QtGui.QBrush shadow(self) -> PySide6.QtGui.QBrush [extrait de shadow.__doc__]
swap(self, other: Union[PySide6.QtGui.QPalette, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor]) -> None swap(self, other: Union[PySide6.QtGui.QPalette, PySide6.QtCore.Qt.GlobalColor, PySide6.QtGui.QColor]) -> None [extrait de swap.__doc__]
text(self) -> PySide6.QtGui.QBrush text(self) -> PySide6.QtGui.QBrush [extrait de text.__doc__]
toolTipBase(self) -> PySide6.QtGui.QBrush toolTipBase(self) -> PySide6.QtGui.QBrush [extrait de toolTipBase.__doc__]
toolTipText(self) -> PySide6.QtGui.QBrush toolTipText(self) -> PySide6.QtGui.QBrush [extrait de toolTipText.__doc__]
window(self) -> PySide6.QtGui.QBrush window(self) -> PySide6.QtGui.QBrush [extrait de window.__doc__]
windowText(self) -> PySide6.QtGui.QBrush windowText(self) -> PySide6.QtGui.QBrush [extrait de windowText.__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__