Skip to content

PythonQt.QtGui.QAbstractButton · declarations 001

Back to PythonQt.QtGui.QAbstractButton

DrawChildren instance-attribute

DrawChildren: Any

DrawWindowBackground instance-attribute

DrawWindowBackground: Any

IgnoreMask instance-attribute

IgnoreMask: Any

PaintDeviceMetric instance-attribute

PaintDeviceMetric: 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

PdmDepth instance-attribute

PdmDepth: Any

PdmDevicePixelRatio instance-attribute

PdmDevicePixelRatio: Any

PdmDevicePixelRatioScaled instance-attribute

PdmDevicePixelRatioScaled: Any

PdmDpiX instance-attribute

PdmDpiX: Any

PdmDpiY instance-attribute

PdmDpiY: Any

PdmHeight instance-attribute

PdmHeight: Any

PdmHeightMM instance-attribute

PdmHeightMM: Any

PdmNumColors instance-attribute

PdmNumColors: Any

PdmPhysicalDpiX instance-attribute

PdmPhysicalDpiX: Any

PdmPhysicalDpiY instance-attribute

PdmPhysicalDpiY: Any

PdmWidth instance-attribute

PdmWidth: Any

PdmWidthMM instance-attribute

PdmWidthMM: Any

RenderFlag instance-attribute

RenderFlag: 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

RenderFlags instance-attribute

RenderFlags: 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

acceptDrops instance-attribute

acceptDrops: Any

accessibleDescription instance-attribute

accessibleDescription: Any

accessibleName instance-attribute

accessibleName: Any

actionEvent

actionEvent(event: Any) -> Any

X.actionEvent(event)

actions

actions() -> tuple

X.actions() -> tuple

activateWindow

activateWindow() -> Any

X.activateWindow()

addAction

addAction(action: Any) -> Any

X.addAction(action)

addActions

addActions(actions: Any) -> Any

X.addActions(actions)

adjustSize

adjustSize() -> Any

X.adjustSize()

animateClick

animateClick(msec: int) -> None

X.animateClick(msec)

Supplemental documentation: Qt 5 reference:

[slot] void QAbstractButton::animateClick(int msec \= 100)

Performs an animated click: the button is pressed immediately, and released msec milliseconds later (the default is 100 ms).

Calling this function again before the button is released resets the release timer.

All signals associated with a click are emitted as appropriate.

This function does nothing if the button is disabled.

See also click().

Upstream PySide2 reference signatures (binding differences may apply):

animateClick(self, msec: int=...) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractbutton.html#animateClick

autoExclusive instance-attribute

autoExclusive: bool

Qt 5 reference:

autoExclusive : bool

This property holds whether auto-exclusivity is enabled

If auto-exclusivity is enabled, checkable buttons that belong to the same parent widget behave as if they were part of the same exclusive button group. In an exclusive button group, only one button can be checked at any time; checking another button automatically unchecks the previously checked one.

The property has no effect on buttons that belong to a button group.

autoExclusive is off by default, except for radio buttons.

Access functions:

bool autoExclusive() const
void setAutoExclusive(bool)

See also QRadioButton.

Source: https://doc.qt.io/archives/qt-5.15/qabstractbutton.html#autoExclusive

autoFillBackground instance-attribute

autoFillBackground: Any

autoRepeat instance-attribute

autoRepeat: bool

Qt 5 reference:

autoRepeat : bool

This property holds whether autoRepeat is enabled

If autoRepeat is enabled, then the pressed(), released(), and clicked() signals are emitted at regular intervals when the button is down. autoRepeat is off by default. The initial delay and the repetition interval are defined in milliseconds by autoRepeatDelay and autoRepeatInterval.

Note: If a button is pressed down by a shortcut key, then auto-repeat is enabled and timed by the system and not by this class. The pressed(), released(), and clicked() signals will be emitted like in the normal case.

Access functions:

bool autoRepeat() const
void setAutoRepeat(bool)

Source: https://doc.qt.io/archives/qt-5.15/qabstractbutton.html#autoRepeat

autoRepeatDelay instance-attribute

autoRepeatDelay: int

Qt 5 reference:

autoRepeatDelay : int

This property holds the initial delay of auto-repetition

If autoRepeat is enabled, then autoRepeatDelay defines the initial delay in milliseconds before auto-repetition kicks in.

This property was introduced in Qt 4.2.

Access functions:

int autoRepeatDelay() const
void setAutoRepeatDelay(int)

See also autoRepeat and autoRepeatInterval.

Source: https://doc.qt.io/archives/qt-5.15/qabstractbutton.html#autoRepeatDelay

autoRepeatInterval instance-attribute

autoRepeatInterval: int

Qt 5 reference:

autoRepeatInterval : int

This property holds the interval of auto-repetition

If autoRepeat is enabled, then autoRepeatInterval defines the length of the auto-repetition interval in millisecons.

This property was introduced in Qt 4.2.

Access functions:

int autoRepeatInterval() const
void setAutoRepeatInterval(int)

See also autoRepeat and autoRepeatDelay.

Source: https://doc.qt.io/archives/qt-5.15/qabstractbutton.html#autoRepeatInterval

backgroundRole

backgroundRole() -> Any

X.backgroundRole()

backingStore

backingStore() -> Any

X.backingStore() -> PythonQt.QtGui.QBackingStore

baseSize instance-attribute

baseSize: QSize

changeEvent

changeEvent(e: Any) -> None

X.changeEvent(e)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QAbstractButton::changeEvent(QEvent *e)

Reimplements: QWidget::changeEvent(QEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

changeEvent(self, e: PySide2.QtCore.QEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractbutton.html#changeEvent

checkStateSet

checkStateSet() -> None

X.checkStateSet()

Supplemental documentation: Qt 5 reference:

[virtual protected] void QAbstractButton::checkStateSet()

This virtual handler is called when setChecked() is used, unless it is called from within nextCheckState(). It allows subclasses to reset their intermediate button states.

See also nextCheckState().

Upstream PySide2 reference signatures (binding differences may apply):

checkStateSet(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qabstractbutton.html#checkStateSet

checkable instance-attribute

checkable: Any

Qt 5 reference:

checkable : bool

This property holds whether the button is checkable

By default, the button is not checkable.

Access functions:

bool isCheckable() const
void setCheckable(bool)

See also checked.

Source: https://doc.qt.io/archives/qt-5.15/qabstractbutton.html#checkable

checked instance-attribute

checked: Any

Qt 5 reference:

checked : bool

This property holds whether the button is checked

Only checkable buttons can be checked. By default, the button is unchecked.

Access functions:

bool isChecked() const
void setChecked(bool)

Notifier signal:

void toggled(bool checked)

See also checkable.

Source: https://doc.qt.io/archives/qt-5.15/qabstractbutton.html#checked