PythonQt.QtGui.QAbstractButton · declarations 008
Back to PythonQt.QtGui.QAbstractButton
showMinimized
showMinimized() -> Any
X.showMinimized()
showNormal
showNormal() -> Any
X.showNormal()
size
instance-attribute
size: QSize
sizeHint
instance-attribute
sizeHint: QSize
sizeIncrement
instance-attribute
sizeIncrement: QSize
stackUnder
stackUnder(arg__1: Any) -> Any
X.stackUnder(arg__1)
statusTip
instance-attribute
statusTip: Any
style
style() -> Any
X.style() -> PythonQt.QtGui.QStyle
styleSheet
instance-attribute
styleSheet: Any
tabletEvent
tabletEvent(event: Any) -> Any
X.tabletEvent(event)
tabletTracking
instance-attribute
tabletTracking: Any
testAttribute
testAttribute(arg__1: Any) -> bool
X.testAttribute(arg__1) -> bool
text
instance-attribute
text: str
Qt 5 reference:
text : QString
This property holds the text shown on the button
If the button has no text, the text() function will return an empty string.
If the text contains an ampersand character ('\&'), a shortcut is automatically created for it. The character that follows the '\&' will be used as the shortcut key. Any previous shortcut will be overwritten or cleared if no shortcut is defined by the text. See the QShortcut documentation for details. To display an actual ampersand, use '\&\&'.
There is no default text.
Access functions:
| QString | text() const |
|---|---|
| void | setText(const QString \&text) |
Source: https://doc.qt.io/archives/qt-5.15/qabstractbutton.html#text
timerEvent
timerEvent(e: Any) -> None
X.timerEvent(e)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QAbstractButton::timerEvent(QTimerEvent *e)
Reimplements: QObject::timerEvent(QTimerEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
timerEvent(self, e: PySide2.QtCore.QTimerEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractbutton.html#timerEvent
toggle
toggle() -> None
X.toggle()
Supplemental documentation: Qt 5 reference:
[slot] void QAbstractButton::toggle()
Toggles the state of a checkable button.
See also checked.
Upstream PySide2 reference signatures (binding differences may apply):
toggle(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractbutton.html#toggle
toggled
toggled(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QAbstractButton.toggled; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QAbstractButton::toggled(bool checked)
This signal is emitted whenever a checkable button changes its state. checked is true if the button is checked, or false if the button is unchecked.
This may be the result of a user action, click() slot activation, or because setChecked() is called.
The states of buttons in exclusive button groups are updated before this signal is emitted. This means that slots can act on either the "off" signal or the "on" signal emitted by the buttons in the group whose states have changed.
For example, a slot that reacts to signals emitted by newly checked buttons but which ignores signals from buttons that have been unchecked can be implemented using the following pattern:
void MyWidget::reactToToggle(bool checked)
{
if (checked) {
// Examine the new button states.
...
}
}
Button groups can be created using the QButtonGroup class, and updates to the button states monitored with the QButtonGroup::buttonClicked() signal.
Note: Notifier signal for property checked.
See also checked and clicked().
Source: https://doc.qt.io/archives/qt-5.15/qabstractbutton.html#toggled
toolTip
instance-attribute
toolTip: Any
toolTipDuration
instance-attribute
toolTipDuration: Any
underMouse
underMouse() -> bool
X.underMouse() -> bool
ungrabGesture
ungrabGesture(type: Any) -> Any
X.ungrabGesture(type)
unsetCursor
unsetCursor() -> Any
X.unsetCursor()
unsetLayoutDirection
unsetLayoutDirection() -> Any
X.unsetLayoutDirection()
unsetLocale
unsetLocale() -> Any
X.unsetLocale()
update
update(x: Any, y: Any, w: Any, h: Any) -> Any
X.update(x, y, w, h)
updateGeometry
updateGeometry() -> Any
X.updateGeometry()
updatesEnabled
instance-attribute
updatesEnabled: Any
visible
instance-attribute
visible: Any
visibleRegion
visibleRegion() -> Any
X.visibleRegion() -> PythonQt.QtGui.QRegion
whatsThis
instance-attribute
whatsThis: Any
wheelEvent
wheelEvent(event: Any) -> Any
X.wheelEvent(event)
widthMM
widthMM() -> int
X.widthMM() -> int
winId
winId() -> int
X.winId() -> int
window
window() -> Any
X.window() -> PythonQt.QtGui.QWidget
windowFilePath
instance-attribute
windowFilePath: Any
windowFlags
windowFlags() -> Any
X.windowFlags()
windowHandle
windowHandle() -> Any
X.windowHandle() -> PythonQt.QtGui.QWindow
windowIconChanged
windowIconChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QAbstractButton.windowIconChanged; argument details are not documented.
windowIconText
instance-attribute
windowIconText: Any