Skip to content

PythonQt.QtGui.QAbstractButton

QAbstractButton

PythonQtInstanceWrapper object

Native bases: PythonQtInstanceWrapper

Supplemental documentation: Qt 5 reference:

Detailed Description

This class implements an abstract button. Subclasses of this class handle user actions, and specify how the button is drawn.

QAbstractButton provides support for both push buttons and checkable (toggle) buttons. Checkable buttons are implemented in the QRadioButton and QCheckBox classes. Push buttons are implemented in the QPushButton and QToolButton classes; these also provide toggle behavior if required.

Any button can display a label containing text and an icon. setText() sets the text; setIcon() sets the icon. If a button is disabled, its label is changed to give the button a "disabled" appearance.

If the button is a text button with a string containing an ampersand ('\&'), QAbstractButton automatically creates a shortcut key. For example:

QPushButton *button = new QPushButton(tr("Ro&ck && Roll"), this);

The Alt+C shortcut is assigned to the button, i.e., when the user presses Alt+C the button will call animateClick(). See the QShortcut documentation for details. To display an actual ampersand, use '\&\&'.

You can also set a custom shortcut key using the setShortcut() function. This is useful mostly for buttons that do not have any text, and therefore can't have any automatic shortcut.

button->setIcon(QIcon(":/images/print.png"));
button->setShortcut(tr("Alt+F7"));

All the buttons provided by Qt (QPushButton, QToolButton, QCheckBox, and QRadioButton) can display both text and icons.

A button can be made the default button in a dialog by means of QPushButton::setDefault() and QPushButton::setAutoDefault().

QAbstractButton provides most of the states used for buttons:

  • isDown() indicates whether the button is pressed down.
  • isChecked() indicates whether the button is checked. Only checkable buttons can be checked and unchecked (see below).
  • isEnabled() indicates whether the button can be pressed by the user.

Note: As opposed to other widgets, buttons derived from QAbstractButton accept mouse and context menu events when disabled. - setAutoRepeat() sets whether the button will auto-repeat if the user holds it down. autoRepeatDelay and autoRepeatInterval define how auto-repetition is done. - setCheckable() sets whether the button is a toggle button or not.

The difference between isDown() and isChecked() is as follows. When the user clicks a toggle button to check it, the button is first pressed then released into the checked state. When the user clicks it again (to uncheck it), the button moves first to the pressed state, then to the unchecked state (isChecked() and isDown() are both false).

QAbstractButton provides four signals:

  1. pressed() is emitted when the left mouse button is pressed while the mouse cursor is inside the button.
  2. released() is emitted when the left mouse button is released.
  3. clicked() is emitted when the button is first pressed and then released, when the shortcut key is typed, or when click() or animateClick() is called.
  4. toggled() is emitted when the state of a toggle button changes.

To subclass QAbstractButton, you must reimplement at least paintEvent() to draw the button's outline and its text or pixmap. It is generally advisable to reimplement sizeHint() as well, and sometimes hitButton() (to determine whether a button press is within the button). For buttons with more than two states (like tri-state buttons), you will also have to reimplement checkStateSet() and nextCheckState().

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

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
DrawChildren attribute Any
DrawWindowBackground attribute Any
IgnoreMask attribute Any
PaintDeviceMetric attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
PdmDepth attribute Any
PdmDevicePixelRatio attribute Any
PdmDevicePixelRatioScaled attribute Any
PdmDpiX attribute Any
PdmDpiY attribute Any
PdmHeight attribute Any
PdmHeightMM attribute Any
PdmNumColors attribute Any
PdmPhysicalDpiX attribute Any
PdmPhysicalDpiY attribute Any
PdmWidth attribute Any
PdmWidthMM attribute Any
RenderFlag attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
RenderFlags attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
__init__ function (self, *args: Any, **kwargs: Any) -> None Native constructor; consult class documentation for supported overloads. (shared captured text)
acceptDrops attribute Any
accessibleDescription attribute Any
accessibleName attribute Any
actionEvent function (self, event: Any) -> Any
actions function (self) -> tuple X.actions() -> tuple
activateWindow function (self) -> Any
addAction function (self, action: Any) -> Any
addActions function (self, actions: Any) -> Any
adjustSize function (self) -> Any
animateClick function (self, msec: int) -> None Performs an animated click: the button is pressed immediately, and released msec milliseconds later (the default is 100 ms).
autoExclusive attribute bool This property holds whether auto-exclusivity is enabled
autoFillBackground attribute Any
autoRepeat attribute bool This property holds whether autoRepeat is enabled
autoRepeatDelay attribute int This property holds the initial delay of auto-repetition
autoRepeatInterval attribute int This property holds the interval of auto-repetition
backgroundRole function (self) -> Any
backingStore function (self) -> Any X.backingStore() -> PythonQt.QtGui.QBackingStore
baseSize attribute QSize
blockSignals function (self, b: Any) -> bool X.blockSignals(b) -> bool (shared captured text)
changeEvent function (self, e: Any) -> None Reimplements: [QWidget::changeEvent](https://doc.qt.io/archives/qt-5.15/qwidget.html#changeEvent)(QEvent *event).
checkStateSet function (self) -> None This virtual handler is called when [setChecked](https://doc.qt.io/archives/qt-5.15/qabstractbutton.html#checked-prop)() is used, unless it is called from within…
checkable attribute Any This property holds whether the button is checkable
checked attribute Any This property holds whether the button is checked
childAt function (self, x: Any, y: Any) -> Any X.childAt(x, y) -> PythonQt.QtGui.QWidget
childEvent function (self, event: Any) -> Any (shared captured text)
children function (self) -> tuple X.children() -> tuple (shared captured text)
childrenRect attribute QRect
childrenRegion attribute QRegion
className function (self, *args: Any, **kwargs: Any) -> Any Return the classname of the object (shared captured text)
clearFocus function (self) -> Any
clearMask function (self) -> Any
click function (self) -> None Performs a click.
clicked function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractButton.clicked; argument details are not documented.
close function (self) -> bool X.close() -> bool
closeEvent function (self, event: Any) -> Any
colorCount function (self) -> int X.colorCount() -> int
connect function (self, signal: Any, receiver: Any, slot: Any, type: Any) -> bool X.connect(signal, receiver, slot, type) -> bool (shared captured text)
contentsMargins function (self) -> Any X.contentsMargins() -> PythonQt.QtGui.QMargins
contentsRect function (self) -> Any X.contentsRect() -> PythonQt.QtCore.QRect
contextMenuEvent function (self, event: Any) -> Any
contextMenuPolicy attribute Any
createWinId function (self) -> Any
createWindowContainer function (self, window: Any, parent: Any, arg2: flags) -> Any X.createWindowContainer(window, parent, flags) -> PythonQt.QtGui.QWidget
cursor attribute QCursor
customContextMenuRequested function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractButton.customContextMenuRequested; argument details are not documented.
customEvent function (self, event: Any) -> Any (shared captured text)
delete function (self, *args: Any, **kwargs: Any) -> Any Deletes the C++ object (at your own risk, my friend!) (shared captured text)
deleteLater function (self) -> Any (shared captured text)
depth function (self) -> int X.depth() -> int
destroy function (self, destroyWindow: Any, destroySubWindows: Any) -> Any X.destroy(destroyWindow, destroySubWindows)
destroyed function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractButton.destroyed; argument details are not documented.
devType function (self) -> int X.devType() -> int
devicePixelRatio function (self) -> int X.devicePixelRatio() -> int
devicePixelRatioF function (self) -> float X.devicePixelRatioF() -> float
devicePixelRatioFScale function (self) -> float X.devicePixelRatioFScale() -> float
disconnect function (self, signal: Any, receiver: Any, slot: Any) -> bool X.disconnect(signal, receiver, slot) -> bool (shared captured text)
down attribute Any This property holds whether the button is pressed down
dragEnterEvent function (self, event: Any) -> Any
dragLeaveEvent function (self, event: Any) -> Any
dragMoveEvent function (self, event: Any) -> Any
dropEvent function (self, event: Any) -> Any
dumpObjectInfo function (self) -> Any (shared captured text)
dumpObjectTree function (self) -> Any (shared captured text)
dynamicPropertyNames function (self) -> Any (shared captured text)
effectiveWinId function (self) -> int X.effectiveWinId() -> int
enabled attribute Any
ensurePolished function (self) -> Any
enterEvent function (self, event: Any) -> Any
event function (self, e: Any) -> bool X.event(e) -> bool
eventFilter function (self, watched: Any, event: Any) -> bool X.eventFilter(watched, event) -> bool (shared captured text)
findChild function (self, type: Any, name: Any) -> Any X.findChild(type, name) -> PythonQt.private.QObject (shared captured text)
findChildren function (self, type: Any, name: Any) -> tuple X.findChildren(type, name) -> tuple (shared captured text)
focus attribute Any
focusInEvent function (self, e: Any) -> None Reimplements: [QWidget::focusInEvent](https://doc.qt.io/archives/qt-5.15/qwidget.html#focusInEvent)(QFocusEvent *event).
focusNextChild function (self) -> bool X.focusNextChild() -> bool
focusNextPrevChild function (self, next: Any) -> bool X.focusNextPrevChild(next) -> bool
focusOutEvent function (self, e: Any) -> None Reimplements: [QWidget::focusOutEvent](https://doc.qt.io/archives/qt-5.15/qwidget.html#focusOutEvent)(QFocusEvent *event).
focusPolicy attribute Any
focusPreviousChild function (self) -> bool X.focusPreviousChild() -> bool
focusProxy function (self) -> Any X.focusProxy() -> PythonQt.QtGui.QWidget
focusWidget function (self) -> Any X.focusWidget() -> PythonQt.QtGui.QWidget
font attribute QFont
fontInfo function (self) -> Any X.fontInfo() -> PythonQt.QtGui.QFontInfo
fontMetrics function (self) -> Any X.fontMetrics() -> PythonQt.QtGui.QFontMetrics
foregroundRole function (self) -> Any
frameGeometry attribute QRect
frameSize attribute QSize
fullScreen attribute Any
geometry attribute QRect
grab function (self, rectangle: Any) -> Any X.grab(rectangle) -> PythonQt.QtGui.QPixmap
grabGesture function (self, type: Any, arg1: flags) -> Any X.grabGesture(type, flags)
grabKeyboard function (self) -> Any
grabMouse function (self, arg__1: Any) -> Any
grabShortcut function (self, key: Any, context: Any) -> int X.grabShortcut(key, context) -> int
graphicsEffect function (self) -> Any X.graphicsEffect() -> PythonQt.QtGui.QGraphicsEffect
graphicsProxyWidget function (self) -> Any X.graphicsProxyWidget() -> PythonQt.QtGui.QGraphicsProxyWidget
group function (self) -> Any X.group() -> PythonQt.QtGui.QButtonGroup
hasFocus function (self) -> bool X.hasFocus() -> bool
hasHeightForWidth function (self) -> bool X.hasHeightForWidth() -> bool
hasMouseTracking function (self) -> bool X.hasMouseTracking() -> bool
height attribute Any (shared captured text)
heightForWidth function (self, arg__1: Any) -> int X.heightForWidth(arg__1) -> int
heightMM function (self) -> int X.heightMM() -> int
help function (self, *args: Any, **kwargs: Any) -> Any Shows the help of available methods for this class (shared captured text)
hide function (self) -> Any
hideEvent function (self, event: Any) -> Any
hitButton function (self, pos: Any) -> bool X.hitButton(pos) -> bool
icon attribute QIcon This property holds the icon shown on the button
iconSize attribute QSize This property holds the icon size used for this button.
inherits function (self, *args: Any, **kwargs: Any) -> Any Returns if the class inherits or is of given type name (shared captured text)
initPainter function (self, painter: Any) -> Any
inputMethodEvent function (self, arg__1: Any) -> Any
inputMethodHints attribute Any
inputMethodQuery function (self, arg__1: Any) -> Any X.inputMethodQuery(arg__1) -> object
insertAction function (self, before: Any, action: Any) -> Any X.insertAction(before, action)
insertActions function (self, before: Any, actions: Any) -> Any X.insertActions(before, actions)
installEventFilter function (self, filterObj: Any) -> Any (shared captured text)
isActiveWindow attribute Any
isAncestorOf function (self, child: Any) -> bool X.isAncestorOf(child) -> bool
isCheckable function (self) -> bool X.isCheckable() -> bool
isChecked function (self) -> bool X.isChecked() -> bool
isDown function (self) -> bool X.isDown() -> bool
isEnabled function (self) -> bool X.isEnabled() -> bool
isEnabledTo function (self, arg__1: Any) -> bool X.isEnabledTo(arg__1) -> bool
isFullScreen function (self) -> bool X.isFullScreen() -> bool
isHidden function (self) -> bool X.isHidden() -> bool
isLeftToRight function (self) -> bool X.isLeftToRight() -> bool
isMaximized function (self) -> bool X.isMaximized() -> bool
isMinimized function (self) -> bool X.isMinimized() -> bool
isModal function (self) -> bool X.isModal() -> bool
isRightToLeft function (self) -> bool X.isRightToLeft() -> bool
isSignalConnected function (self, signal: Any) -> bool X.isSignalConnected(signal) -> bool (shared captured text)
isVisible function (self) -> bool X.isVisible() -> bool
isVisibleTo function (self, arg__1: Any) -> bool X.isVisibleTo(arg__1) -> bool
isWidgetType function (self) -> bool X.isWidgetType() -> bool (shared captured text)
isWindow function (self) -> bool X.isWindow() -> bool
isWindowModified function (self) -> bool X.isWindowModified() -> bool
isWindowType function (self) -> bool X.isWindowType() -> bool (shared captured text)
keyPressEvent function (self, e: Any) -> None Reimplements: [QWidget::keyPressEvent](https://doc.qt.io/archives/qt-5.15/qwidget.html#keyPressEvent)(QKeyEvent *event).
keyReleaseEvent function (self, e: Any) -> None Reimplements: [QWidget::keyReleaseEvent](https://doc.qt.io/archives/qt-5.15/qwidget.html#keyReleaseEvent)(QKeyEvent *event).
keyboardGrabber function (self) -> Any X.keyboardGrabber() -> PythonQt.QtGui.QWidget
killTimer function (self, id: Any) -> Any (shared captured text)
layout function (self) -> Any X.layout() -> PythonQt.QtGui.QLayout
layoutDirection attribute Any
leaveEvent function (self, event: Any) -> Any
locale attribute QLocale
logicalDpiX function (self) -> int X.logicalDpiX() -> int
logicalDpiY function (self) -> int X.logicalDpiY() -> int
lower function (self) -> Any
mapFrom function (self, arg__1: Any, arg__2: Any) -> Any X.mapFrom(arg__1, arg__2) -> PythonQt.QtCore.QPoint
mapFromGlobal function (self, arg__1: Any) -> Any X.mapFromGlobal(arg__1) -> PythonQt.QtCore.QPoint
mapFromParent function (self, arg__1: Any) -> Any X.mapFromParent(arg__1) -> PythonQt.QtCore.QPoint
mapTo function (self, arg__1: Any, arg__2: Any) -> Any X.mapTo(arg__1, arg__2) -> PythonQt.QtCore.QPoint
mapToGlobal function (self, arg__1: Any) -> Any X.mapToGlobal(arg__1) -> PythonQt.QtCore.QPoint
mapToParent function (self, arg__1: Any) -> Any X.mapToParent(arg__1) -> PythonQt.QtCore.QPoint
mask function (self) -> Any X.mask() -> PythonQt.QtGui.QRegion
maximized attribute Any
maximumHeight attribute Any
maximumSize attribute QSize
maximumWidth attribute Any
metaObject function (self) -> Any X.metaObject() -> PythonQt.QtCore.QMetaObject (shared captured text)
metric function (self, arg__1: Any) -> int X.metric(arg__1) -> int
minimized attribute Any
minimumHeight attribute Any
minimumSize attribute QSize
minimumSizeHint attribute QSize
minimumWidth attribute Any
modal attribute Any
mouseDoubleClickEvent function (self, event: Any) -> Any
mouseGrabber function (self) -> Any X.mouseGrabber() -> PythonQt.QtGui.QWidget
mouseMoveEvent function (self, e: Any) -> None Reimplements: [QWidget::mouseMoveEvent](https://doc.qt.io/archives/qt-5.15/qwidget.html#mouseMoveEvent)(QMouseEvent *event).
mousePressEvent function (self, e: Any) -> None Reimplements: [QWidget::mousePressEvent](https://doc.qt.io/archives/qt-5.15/qwidget.html#mousePressEvent)(QMouseEvent *event).
mouseReleaseEvent function (self, e: Any) -> None Reimplements: [QWidget::mouseReleaseEvent](https://doc.qt.io/archives/qt-5.15/qwidget.html#mouseReleaseEvent)(QMouseEvent *event).
mouseTracking attribute Any
move function (self, x: Any, y: Any) -> Any X.move(x, y)
moveEvent function (self, event: Any) -> Any
moveToThread function (self, thread: Any) -> Any (shared captured text)
nativeEvent function (self, eventType: Any, message: Any, result: Any) -> bool X.nativeEvent(eventType, message, result) -> bool
nativeParentWidget function (self) -> Any X.nativeParentWidget() -> PythonQt.QtGui.QWidget
nextCheckState function (self) -> None This virtual handler is called when a button is clicked.
nextInFocusChain function (self) -> Any X.nextInFocusChain() -> PythonQt.QtGui.QWidget
normalGeometry attribute QRect
objectName attribute Any (shared captured text)
objectNameChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractButton.objectNameChanged; argument details are not documented.
overrideWindowFlags function (self, type: Any) -> Any
overrideWindowState function (self, state: Any) -> Any
paintEngine function (self) -> Any X.paintEngine() -> PythonQt.QtGui.QPaintEngine
paintEvent function (self, e: Any) -> None Reimplements: [QWidget::paintEvent](https://doc.qt.io/archives/qt-5.15/qwidget.html#paintEvent)(QPaintEvent *event).
paintingActive function (self) -> bool X.paintingActive() -> bool
palette attribute QPalette
parent function (self) -> Any X.parent() -> PythonQt.private.QObject (shared captured text)
parentWidget function (self) -> Any X.parentWidget() -> PythonQt.QtGui.QWidget
physicalDpiX function (self) -> int X.physicalDpiX() -> int
physicalDpiY function (self) -> int X.physicalDpiY() -> int
pos attribute QPoint
pressed function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractButton.pressed; argument details are not documented.
previousInFocusChain function (self) -> Any X.previousInFocusChain() -> PythonQt.QtGui.QWidget
property function (self, name: Any) -> Any X.property(name) -> object (shared captured text)
raise_ function (self) -> Any Native spelling: raise; access it through getattr on the native object.
rect attribute QRect
redirected function (self, offset: Any) -> Any X.redirected(offset) -> PythonQt.QtGui.QPaintDevice
releaseKeyboard function (self) -> Any
releaseMouse function (self) -> Any
releaseShortcut function (self, id: Any) -> Any
released function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractButton.released; argument details are not documented.
removeAction function (self, action: Any) -> Any
removeEventFilter function (self, obj: Any) -> Any (shared captured text)
render function (self, target: Any, targetOffset: Any, sourceRegion: Any, renderFlags: Any) -> Any X.render(target, targetOffset, sourceRegion, renderFlags)
repaint function (self, x: Any, y: Any, w: Any, h: Any) -> Any X.repaint(x, y, w, h)
resize function (self, w: Any, h: Any) -> Any X.resize(w, h)
resizeEvent function (self, event: Any) -> Any
restoreGeometry function (self, geometry: Any) -> bool X.restoreGeometry(geometry) -> bool
saveGeometry function (self) -> Any X.saveGeometry() -> PythonQt.QtCore.QByteArray
scroll function (self, dx: Any, dy: Any, arg__3: Any) -> Any X.scroll(dx, dy, arg__3)
sender function (self) -> Any X.sender() -> PythonQt.private.QObject (shared captured text)
senderSignalIndex function (self) -> int X.senderSignalIndex() -> int (shared captured text)
setAcceptDrops function (self, on: Any) -> Any
setAccessibleDescription function (self, description: Any) -> Any
setAccessibleName function (self, name: Any) -> Any
setAttribute function (self, arg__1: Any, on: Any) -> Any X.setAttribute(arg__1, on)
setAutoExclusive function (self, arg__1: bool) -> None
setAutoFillBackground function (self, enabled: Any) -> Any
setAutoRepeat function (self, arg__1: bool) -> None
setAutoRepeatDelay function (self, arg__1: int) -> None
setAutoRepeatInterval function (self, arg__1: int) -> None
setBackgroundRole function (self, arg__1: Any) -> Any
setBaseSize function (self, basew: Any, baseh: Any) -> Any X.setBaseSize(basew, baseh)
setCheckable function (self, arg__1: bool) -> None
setChecked function (self, a: Any) -> None
setContentsMargins function (self, left: Any, top: Any, right: Any, bottom: Any) -> Any X.setContentsMargins(left, top, right, bottom)
setContextMenuPolicy function (self, policy: Any) -> Any
setCursor function (self, arg__1: Any) -> Any
setDisabled function (self, a: Any) -> Any
setDown function (self, arg__1: bool) -> None
setEnabled function (self, a: Any) -> Any
setFixedHeight function (self, h: Any) -> Any
setFixedSize function (self, w: Any, h: Any) -> Any X.setFixedSize(w, h)
setFixedWidth function (self, w: Any) -> Any
setFocus function (self, reason: Any) -> Any
setFocusPolicy function (self, policy: Any) -> Any
setFocusProxy function (self, arg__1: Any) -> Any
setFont function (self, arg__1: Any) -> Any
setForegroundRole function (self, arg__1: Any) -> Any
setGeometry function (self, x: Any, y: Any, w: Any, h: Any) -> Any X.setGeometry(x, y, w, h)
setGraphicsEffect function (self, effect: Any) -> Any
setHidden function (self, hidden: Any) -> Any
setIcon function (self, icon: Any) -> None
setIconSize function (self, size: Any) -> None
setInputMethodHints function (self, hints: Any) -> Any
setLayout function (self, arg__1: Any) -> Any
setLayoutDirection function (self, direction: Any) -> Any
setLocale function (self, locale: Any) -> Any
setMask function (self, arg__1: Any) -> Any
setMaximumHeight function (self, maxh: Any) -> Any
setMaximumSize function (self, maxw: Any, maxh: Any) -> Any X.setMaximumSize(maxw, maxh)
setMaximumWidth function (self, maxw: Any) -> Any
setMinimumHeight function (self, minh: Any) -> Any
setMinimumSize function (self, minw: Any, minh: Any) -> Any X.setMinimumSize(minw, minh)
setMinimumWidth function (self, minw: Any) -> Any
setMouseTracking function (self, enable: Any) -> Any
setObjectName function (self, name: Any) -> Any (shared captured text)
setPalette function (self, arg__1: Any) -> Any
setParent function (self, parent: Any, f: Any) -> Any X.setParent(parent, f)
setProperty function (self, name: Any, value: Any) -> bool X.setProperty(name, value) -> bool (shared captured text)
setShortcut function (self, key: Any) -> None
setShortcutAutoRepeat function (self, id: Any, enable: Any) -> Any X.setShortcutAutoRepeat(id, enable)
setShortcutEnabled function (self, id: Any, enable: Any) -> Any X.setShortcutEnabled(id, enable)
setSizeIncrement function (self, w: Any, h: Any) -> Any X.setSizeIncrement(w, h)
setSizePolicy function (self, horizontal: Any, vertical: Any) -> Any X.setSizePolicy(horizontal, vertical)
setStatusTip function (self, arg__1: Any) -> Any
setStyle function (self, arg__1: Any) -> Any
setStyleSheet function (self, styleSheet: Any) -> Any
setTabOrder function (self, arg__1: Any, arg__2: Any) -> Any X.setTabOrder(arg__1, arg__2)
setText function (self, text: str) -> None
setToolTip function (self, arg__1: Any) -> Any
setToolTipDuration function (self, msec: Any) -> Any
setUpdatesEnabled function (self, enable: Any) -> Any
setVisible function (self, visible: Any) -> Any
setWhatsThis function (self, arg__1: Any) -> Any
setWindowFilePath function (self, filePath: Any) -> Any
setWindowFlags function (self, type: Any) -> Any
setWindowIcon function (self, icon: Any) -> Any
setWindowIconText function (self, arg__1: Any) -> Any
setWindowModality function (self, windowModality: Any) -> Any
setWindowModified function (self, a: Any) -> Any
setWindowOpacity function (self, level: Any) -> Any
setWindowRole function (self, arg__1: Any) -> Any
setWindowState function (self, state: Any) -> Any
setWindowTitle function (self, a: Any) -> Any
sharedPainter function (self) -> Any X.sharedPainter() -> PythonQt.QtGui.QPainter
shortcut attribute QKeySequence This property holds the mnemonic associated with the button
show function (self) -> Any
showEvent function (self, event: Any) -> Any
showFullScreen function (self) -> Any
showMaximized function (self) -> Any
showMinimized function (self) -> Any
showNormal function (self) -> Any
signalsBlocked function (self) -> bool X.signalsBlocked() -> bool (shared captured text)
size attribute QSize
sizeHint attribute QSize
sizeIncrement attribute QSize
sizePolicy attribute QSizePolicy
stackUnder function (self, arg__1: Any) -> Any
startTimer function (self, interval: Any, timerType: Any) -> int X.startTimer(interval, timerType) -> int (shared captured text)
statusTip attribute Any
style function (self) -> Any X.style() -> PythonQt.QtGui.QStyle
styleSheet attribute Any
tabletEvent function (self, event: Any) -> Any
tabletTracking attribute Any
testAttribute function (self, arg__1: Any) -> bool X.testAttribute(arg__1) -> bool
text attribute str This property holds the text shown on the button
thread function (self) -> Any (shared captured text)
timerEvent function (self, e: Any) -> None Reimplements: [QObject::timerEvent](https://doc.qt.io/archives/qt-5.15/qobject.html#timerEvent)(QTimerEvent *event).
toggle function (self) -> None Toggles the state of a checkable button.
toggled function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractButton.toggled; argument details are not documented.
toolTip attribute Any
toolTipDuration attribute Any
tr function (self, text: Any, ambig: Any, n: Any) -> str X.tr(text, ambig, n) -> str (shared captured text)
underMouse function (self) -> bool X.underMouse() -> bool
ungrabGesture function (self, type: Any) -> Any
unsetCursor function (self) -> Any
unsetLayoutDirection function (self) -> Any
unsetLocale function (self) -> Any
update function (self, x: Any, y: Any, w: Any, h: Any) -> Any X.update(x, y, w, h)
updateGeometry function (self) -> Any
updatesEnabled attribute Any
visible attribute Any
visibleRegion function (self) -> Any X.visibleRegion() -> PythonQt.QtGui.QRegion
whatsThis attribute Any
wheelEvent function (self, event: Any) -> Any
width attribute Any (shared captured text)
widthMM function (self) -> int X.widthMM() -> int
winId function (self) -> int X.winId() -> int
window function (self) -> Any X.window() -> PythonQt.QtGui.QWidget
windowFilePath attribute Any
windowFlags function (self) -> Any
windowHandle function (self) -> Any X.windowHandle() -> PythonQt.QtGui.QWindow
windowIcon attribute QIcon
windowIconChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractButton.windowIconChanged; argument details are not documented.
windowIconText attribute Any
windowIconTextChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractButton.windowIconTextChanged; argument details are not documented.
windowModality attribute Any
windowModified attribute Any
windowOpacity attribute Any
windowRole function (self) -> str X.windowRole() -> str
windowState function (self) -> Any
windowTitle attribute Any
windowTitleChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtGui.QAbstractButton.windowTitleChanged; argument details are not documented.
windowType function (self) -> Any
x attribute Any (shared captured text)
y attribute Any (shared captured text)