Skip to content

PythonQt.QtGui.QPalette · declarations 001

Back to PythonQt.QtGui.QPalette

All instance-attribute

All: Any

AlternateBase instance-attribute

AlternateBase: Any

Background instance-attribute

Background: Any

Base instance-attribute

Base: Any

BrightText instance-attribute

BrightText: Any

Button instance-attribute

Button: Any

ButtonText instance-attribute

ButtonText: Any

ColorGroup instance-attribute

ColorGroup: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

ColorRole instance-attribute

ColorRole: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

Dark instance-attribute

Dark: Any

Foreground instance-attribute

Foreground: Any

Highlight instance-attribute

Highlight: Any

HighlightedText instance-attribute

HighlightedText: Any

Inactive instance-attribute

Inactive: Any
Link: Any

LinkVisited instance-attribute

LinkVisited: Any

Mid instance-attribute

Mid: Any

Midlight instance-attribute

Midlight: Any

NColorGroups instance-attribute

NColorGroups: Any

NColorRoles instance-attribute

NColorRoles: Any

Shadow instance-attribute

Shadow: Any

ToolTipBase instance-attribute

ToolTipBase: Any

ToolTipText instance-attribute

ToolTipText: Any

WindowText instance-attribute

WindowText: Any

alternateBase

alternateBase() -> Any

X.alternateBase() -> PythonQt.QtGui.QBrush

Supplemental documentation: Qt 5 reference:

const QBrush \&QPalette::alternateBase() const

Returns the alternate base brush of the current color group.

See also ColorRole and brush().

Upstream PySide2 reference signatures (binding differences may apply):

alternateBase(self) -> PySide2.QtGui.QBrush

Source: https://doc.qt.io/archives/qt-5.15/qpalette.html#alternateBase

base

base() -> Any

X.base() -> PythonQt.QtGui.QBrush

Supplemental documentation: Qt 5 reference:

const QBrush \&QPalette::base() const

Returns the base brush of the current color group.

See also ColorRole and brush().

Upstream PySide2 reference signatures (binding differences may apply):

base(self) -> PySide2.QtGui.QBrush

Source: https://doc.qt.io/archives/qt-5.15/qpalette.html#base

brightText

brightText() -> Any

X.brightText() -> PythonQt.QtGui.QBrush

Supplemental documentation: Qt 5 reference:

const QBrush \&QPalette::brightText() const

Returns the bright text foreground brush of the current color group.

See also ColorRole and brush().

Upstream PySide2 reference signatures (binding differences may apply):

brightText(self) -> PySide2.QtGui.QBrush

Source: https://doc.qt.io/archives/qt-5.15/qpalette.html#brightText

brush

brush(cg: Any, cr: Any) -> Any

X.brush(cg, cr) -> PythonQt.QtGui.QBrush

Supplemental documentation: Qt 5 reference:

const QBrush \&QPalette::brush(QPalette::ColorGroup group, QPalette::ColorRole role) const

Returns the brush in the specified color group, used for the given color role.

See also color(), setBrush(), and ColorRole.

const QBrush \&QPalette::brush(QPalette::ColorRole role) const

This is an overloaded function.

Returns the brush that has been set for the given color role in the current ColorGroup.

See also color(), setBrush(), and ColorRole.

Upstream PySide2 reference signatures (binding differences may apply):

brush(self, cg: PySide2.QtGui.QPalette.ColorGroup, cr: PySide2.QtGui.QPalette.ColorRole) -> PySide2.QtGui.QBrush
brush(self, cr: PySide2.QtGui.QPalette.ColorRole) -> PySide2.QtGui.QBrush

Source: https://doc.qt.io/archives/qt-5.15/qpalette.html#brush

button

button() -> Any

X.button() -> PythonQt.QtGui.QBrush

Supplemental documentation: Qt 5 reference:

const QBrush \&QPalette::button() const

Returns the button brush of the current color group.

See also ColorRole and brush().

Upstream PySide2 reference signatures (binding differences may apply):

button(self) -> PySide2.QtGui.QBrush

Source: https://doc.qt.io/archives/qt-5.15/qpalette.html#button

buttonText

buttonText() -> Any

X.buttonText() -> PythonQt.QtGui.QBrush

Supplemental documentation: Qt 5 reference:

const QBrush \&QPalette::buttonText() const

Returns the button text foreground brush of the current color group.

See also ColorRole and brush().

Upstream PySide2 reference signatures (binding differences may apply):

buttonText(self) -> PySide2.QtGui.QBrush

Source: https://doc.qt.io/archives/qt-5.15/qpalette.html#buttonText

cacheKey

cacheKey() -> int

X.cacheKey() -> int

Supplemental documentation: Qt 5 reference:

qint64 QPalette::cacheKey() const

Returns a number that identifies the contents of this QPalette object. Distinct QPalette objects can have the same key if they refer to the same contents.

The cacheKey() will change when the palette is altered.

Upstream PySide2 reference signatures (binding differences may apply):

cacheKey(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qpalette.html#cacheKey

color

color(cg: Any, cr: Any) -> Any

X.color(cg, cr) -> PythonQt.QtGui.QColor

Supplemental documentation: Qt 5 reference:

const QColor \&QPalette::color(QPalette::ColorGroup group, QPalette::ColorRole role) const

Returns the color in the specified color group, used for the given color role.

See also brush(), setColor(), and ColorRole.

const QColor \&QPalette::color(QPalette::ColorRole role) const

This is an overloaded function.

Returns the color that has been set for the given color role in the current ColorGroup.

See also brush() and ColorRole.

Upstream PySide2 reference signatures (binding differences may apply):

color(self, cg: PySide2.QtGui.QPalette.ColorGroup, cr: PySide2.QtGui.QPalette.ColorRole) -> PySide2.QtGui.QColor
color(self, cr: PySide2.QtGui.QPalette.ColorRole) -> PySide2.QtGui.QColor

Source: https://doc.qt.io/archives/qt-5.15/qpalette.html#color

currentColorGroup

currentColorGroup() -> Any

X.currentColorGroup()

Supplemental documentation: Qt 5 reference:

QPalette::ColorGroup QPalette::currentColorGroup() const

Returns the palette's current color group.

See also setCurrentColorGroup().

Upstream PySide2 reference signatures (binding differences may apply):

currentColorGroup(self) -> PySide2.QtGui.QPalette.ColorGroup

Source: https://doc.qt.io/archives/qt-5.15/qpalette.html#currentColorGroup

dark

dark() -> Any

X.dark() -> PythonQt.QtGui.QBrush

Supplemental documentation: Qt 5 reference:

const QBrush \&QPalette::dark() const

Returns the dark brush of the current color group.

See also ColorRole and brush().

Upstream PySide2 reference signatures (binding differences may apply):

dark(self) -> PySide2.QtGui.QBrush

Source: https://doc.qt.io/archives/qt-5.15/qpalette.html#dark

highlight

highlight() -> Any

X.highlight() -> PythonQt.QtGui.QBrush

Supplemental documentation: Qt 5 reference:

const QBrush \&QPalette::highlight() const

Returns the highlight brush of the current color group.

See also ColorRole and brush().

Upstream PySide2 reference signatures (binding differences may apply):

highlight(self) -> PySide2.QtGui.QBrush

Source: https://doc.qt.io/archives/qt-5.15/qpalette.html#highlight

highlightedText

highlightedText() -> Any

X.highlightedText() -> PythonQt.QtGui.QBrush

Supplemental documentation: Qt 5 reference:

const QBrush \&QPalette::highlightedText() const

Returns the highlighted text brush of the current color group.

See also ColorRole and brush().

Upstream PySide2 reference signatures (binding differences may apply):

highlightedText(self) -> PySide2.QtGui.QBrush

Source: https://doc.qt.io/archives/qt-5.15/qpalette.html#highlightedText

isBrushSet

isBrushSet(cg: Any, cr: Any) -> bool

X.isBrushSet(cg, cr) -> bool

Supplemental documentation: Qt 5 reference:

bool QPalette::isBrushSet(QPalette::ColorGroup cg, QPalette::ColorRole cr) const

Returns true if the ColorGroup cg and ColorRole cr has been set previously on this palette; otherwise returns false.

This function was introduced in Qt 4.2.

See also setBrush().

Upstream PySide2 reference signatures (binding differences may apply):

isBrushSet(self, cg: PySide2.QtGui.QPalette.ColorGroup, cr: PySide2.QtGui.QPalette.ColorRole) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qpalette.html#isBrushSet

isCopyOf

isCopyOf(p: Any) -> bool

X.isCopyOf(p) -> bool

Supplemental documentation: Qt 5 reference:

bool QPalette::isCopyOf(const QPalette \&p) const

Returns true if this palette and p are copies of each other, i.e. one of them was created as a copy of the other and neither was subsequently modified; otherwise returns false. This is much stricter than equality.

See also operator\=() and operator\=\=().

Upstream PySide2 reference signatures (binding differences may apply):

isCopyOf(self, p: PySide2.QtGui.QPalette) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qpalette.html#isCopyOf

isEqual

isEqual(cr1: Any, cr2: Any) -> bool

X.isEqual(cr1, cr2) -> bool

Supplemental documentation: Qt 5 reference:

bool QPalette::isEqual(QPalette::ColorGroup cg1, QPalette::ColorGroup cg2) const

Returns true (usually quickly) if color group cg1 is equal to cg2; otherwise returns false.

Upstream PySide2 reference signatures (binding differences may apply):

isEqual(self, cr1: PySide2.QtGui.QPalette.ColorGroup, cr2: PySide2.QtGui.QPalette.ColorGroup) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qpalette.html#isEqual

light

light() -> Any

X.light() -> PythonQt.QtGui.QBrush

Supplemental documentation: Qt 5 reference:

const QBrush \&QPalette::light() const

Returns the light brush of the current color group.

See also ColorRole and brush().

Upstream PySide2 reference signatures (binding differences may apply):

light(self) -> PySide2.QtGui.QBrush

Source: https://doc.qt.io/archives/qt-5.15/qpalette.html#light