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)
__new__(*args, **kwargs) |
Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__] |
Liste des attributs statiques
Active | PySide6.QtGui.QPalette.ColorGroup.Active |
All | PySide6.QtGui.QPalette.ColorGroup.All |
AlternateBase | PySide6.QtGui.QPalette.ColorRole.AlternateBase |
Base | PySide6.QtGui.QPalette.ColorRole.Base |
BrightText | PySide6.QtGui.QPalette.ColorRole.BrightText |
Button | PySide6.QtGui.QPalette.ColorRole.Button |
ButtonText | PySide6.QtGui.QPalette.ColorRole.ButtonText |
Current | PySide6.QtGui.QPalette.ColorGroup.Current |
Dark | PySide6.QtGui.QPalette.ColorRole.Dark |
Disabled | PySide6.QtGui.QPalette.ColorGroup.Disabled |
Highlight | PySide6.QtGui.QPalette.ColorRole.Highlight |
HighlightedText | PySide6.QtGui.QPalette.ColorRole.HighlightedText |
Inactive | PySide6.QtGui.QPalette.ColorGroup.Inactive |
Light | PySide6.QtGui.QPalette.ColorRole.Light |
Link | PySide6.QtGui.QPalette.ColorRole.Link |
LinkVisited | PySide6.QtGui.QPalette.ColorRole.LinkVisited |
Mid | PySide6.QtGui.QPalette.ColorRole.Mid |
Midlight | PySide6.QtGui.QPalette.ColorRole.Midlight |
NColorGroups | PySide6.QtGui.QPalette.ColorGroup.NColorGroups |
NColorRoles | PySide6.QtGui.QPalette.ColorRole.NColorRoles |
Normal | PySide6.QtGui.QPalette.ColorGroup.Normal |
NoRole | PySide6.QtGui.QPalette.ColorRole.NoRole |
PlaceholderText | PySide6.QtGui.QPalette.ColorRole.PlaceholderText |
Shadow | PySide6.QtGui.QPalette.ColorRole.Shadow |
Text | PySide6.QtGui.QPalette.ColorRole.Text |
ToolTipBase | PySide6.QtGui.QPalette.ColorRole.ToolTipBase |
ToolTipText | PySide6.QtGui.QPalette.ColorRole.ToolTipText |
Window | PySide6.QtGui.QPalette.ColorRole.Window |
WindowText | PySide6.QtGui.QPalette.ColorRole.WindowText |
Liste des opérateurs
__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
__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__
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 :