PythonQt.QtGui.QAbstractButton · declarations 002
Back to PythonQt.QtGui.QAbstractButton
childAt
childAt(x: Any, y: Any) -> Any
X.childAt(x, y) -> PythonQt.QtGui.QWidget
childrenRect
instance-attribute
childrenRect: QRect
clearFocus
clearFocus() -> Any
X.clearFocus()
clearMask
clearMask() -> Any
X.clearMask()
click
click() -> None
X.click()
Supplemental documentation: Qt 5 reference:
[slot] void QAbstractButton::click()
Performs a click.
All the usual signals associated with a click are emitted as appropriate. If the button is checkable, the state of the button is toggled.
This function does nothing if the button is disabled.
See also animateClick().
Upstream PySide2 reference signatures (binding differences may apply):
click(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractbutton.html#click
clicked
clicked(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QAbstractButton.clicked; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QAbstractButton::clicked(bool checked \= false)
This signal is emitted when the button is activated (i.e., pressed down then released while the mouse cursor is inside the button), when the shortcut key is typed, or when click() or animateClick() is called. Notably, this signal is not emitted if you call setDown(), setChecked() or toggle().
If the button is checkable, checked is true if the button is checked, or false if the button is unchecked.
See also pressed(), released(), and toggled().
Source: https://doc.qt.io/archives/qt-5.15/qabstractbutton.html#clicked
close
close() -> bool
X.close() -> bool
closeEvent
closeEvent(event: Any) -> Any
X.closeEvent(event)
colorCount
colorCount() -> int
X.colorCount() -> int
contentsMargins
contentsMargins() -> Any
X.contentsMargins() -> PythonQt.QtGui.QMargins
contentsRect
contentsRect() -> Any
X.contentsRect() -> PythonQt.QtCore.QRect
contextMenuEvent
contextMenuEvent(event: Any) -> Any
X.contextMenuEvent(event)
contextMenuPolicy
instance-attribute
contextMenuPolicy: Any
createWinId
createWinId() -> Any
X.createWinId()
createWindowContainer
createWindowContainer(window: Any, parent: Any, arg2: flags) -> Any
X.createWindowContainer(window, parent, flags) -> PythonQt.QtGui.QWidget
customContextMenuRequested
customContextMenuRequested(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QAbstractButton.customContextMenuRequested; argument details are not documented.
depth
depth() -> int
X.depth() -> int
destroy
destroy(destroyWindow: Any, destroySubWindows: Any) -> Any
X.destroy(destroyWindow, destroySubWindows)
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QAbstractButton.destroyed; argument details are not documented.
devType
devType() -> int
X.devType() -> int
devicePixelRatio
devicePixelRatio() -> int
X.devicePixelRatio() -> int
devicePixelRatioF
devicePixelRatioF() -> float
X.devicePixelRatioF() -> float
devicePixelRatioFScale
devicePixelRatioFScale() -> float
X.devicePixelRatioFScale() -> float
down
instance-attribute
down: Any
Qt 5 reference:
down : bool
This property holds whether the button is pressed down
If this property is true, the button is pressed down. The signals
pressed() and
clicked() are not
emitted if you set this property to true. The default is false.
Access functions:
| bool | isDown() const |
|---|---|
| void | setDown(bool) |
Source: https://doc.qt.io/archives/qt-5.15/qabstractbutton.html#down
dragEnterEvent
dragEnterEvent(event: Any) -> Any
X.dragEnterEvent(event)
dragLeaveEvent
dragLeaveEvent(event: Any) -> Any
X.dragLeaveEvent(event)
dragMoveEvent
dragMoveEvent(event: Any) -> Any
X.dragMoveEvent(event)
dropEvent
dropEvent(event: Any) -> Any
X.dropEvent(event)
effectiveWinId
effectiveWinId() -> int
X.effectiveWinId() -> int
enabled
instance-attribute
enabled: Any
ensurePolished
ensurePolished() -> Any
X.ensurePolished()
enterEvent
enterEvent(event: Any) -> Any
X.enterEvent(event)
event
event(e: Any) -> bool
X.event(e) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual protected] bool QAbstractButton::event(QEvent *e)
Reimplements: QWidget::event(QEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
event(self, e: PySide2.QtCore.QEvent) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qabstractbutton.html#event
focus
instance-attribute
focus: Any
focusInEvent
focusInEvent(e: Any) -> None
X.focusInEvent(e)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QAbstractButton::focusInEvent(QFocusEvent *e)
Reimplements: QWidget::focusInEvent(QFocusEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
focusInEvent(self, e: PySide2.QtGui.QFocusEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractbutton.html#focusInEvent
focusNextChild
focusNextChild() -> bool
X.focusNextChild() -> bool
focusNextPrevChild
focusNextPrevChild(next: Any) -> bool
X.focusNextPrevChild(next) -> bool
focusOutEvent
focusOutEvent(e: Any) -> None
X.focusOutEvent(e)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QAbstractButton::focusOutEvent(QFocusEvent *e)
Reimplements: QWidget::focusOutEvent(QFocusEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
focusOutEvent(self, e: PySide2.QtGui.QFocusEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractbutton.html#focusOutEvent