Skip to content

PythonQt.QtGui.QAbstractButton · declarations 003

Back to PythonQt.QtGui.QAbstractButton

focusPolicy instance-attribute

focusPolicy: Any

focusPreviousChild

focusPreviousChild() -> bool

X.focusPreviousChild() -> bool

focusProxy

focusProxy() -> Any

X.focusProxy() -> PythonQt.QtGui.QWidget

focusWidget

focusWidget() -> Any

X.focusWidget() -> PythonQt.QtGui.QWidget

font instance-attribute

font: QFont

fontInfo

fontInfo() -> Any

X.fontInfo() -> PythonQt.QtGui.QFontInfo

fontMetrics

fontMetrics() -> Any

X.fontMetrics() -> PythonQt.QtGui.QFontMetrics

foregroundRole

foregroundRole() -> Any

X.foregroundRole()

frameGeometry instance-attribute

frameGeometry: QRect

frameSize instance-attribute

frameSize: QSize

fullScreen instance-attribute

fullScreen: Any

geometry instance-attribute

geometry: QRect

grab

grab(rectangle: Any) -> Any

X.grab(rectangle) -> PythonQt.QtGui.QPixmap

grabGesture

grabGesture(type: Any, arg1: flags) -> Any

X.grabGesture(type, flags)

grabKeyboard

grabKeyboard() -> Any

X.grabKeyboard()

grabMouse

grabMouse(arg__1: Any) -> Any

X.grabMouse(arg__1)

grabShortcut

grabShortcut(key: Any, context: Any) -> int

X.grabShortcut(key, context) -> int

graphicsEffect

graphicsEffect() -> Any

X.graphicsEffect() -> PythonQt.QtGui.QGraphicsEffect

graphicsProxyWidget

graphicsProxyWidget() -> Any

X.graphicsProxyWidget() -> PythonQt.QtGui.QGraphicsProxyWidget

group

group() -> Any

X.group() -> PythonQt.QtGui.QButtonGroup

Supplemental documentation: Qt 5 reference:

QButtonGroup *QAbstractButton::group() const

Returns the group that this button belongs to.

If the button is not a member of any QButtonGroup, this function returns nullptr.

See also QButtonGroup.

Upstream PySide2 reference signatures (binding differences may apply):

group(self) -> PySide2.QtWidgets.QButtonGroup

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

hasFocus

hasFocus() -> bool

X.hasFocus() -> bool

hasHeightForWidth

hasHeightForWidth() -> bool

X.hasHeightForWidth() -> bool

hasMouseTracking

hasMouseTracking() -> bool

X.hasMouseTracking() -> bool

heightForWidth

heightForWidth(arg__1: Any) -> int

X.heightForWidth(arg__1) -> int

heightMM

heightMM() -> int

X.heightMM() -> int

hide

hide() -> Any

X.hide()

hideEvent

hideEvent(event: Any) -> Any

X.hideEvent(event)

hitButton

hitButton(pos: Any) -> bool

X.hitButton(pos) -> bool

Supplemental documentation: Qt 5 reference:

[virtual protected] bool QAbstractButton::hitButton(const QPoint \&pos) const

Returns true if pos is inside the clickable button rectangle; otherwise returns false.

By default, the clickable area is the entire widget. Subclasses may reimplement this function to provide support for clickable areas of different shapes and sizes.

Upstream PySide2 reference signatures (binding differences may apply):

hitButton(self, pos: PySide2.QtCore.QPoint) -> bool

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

icon instance-attribute

icon: QIcon

Qt 5 reference:

icon : QIcon

This property holds the icon shown on the button

The icon's default size is defined by the GUI style, but can be adjusted by setting the iconSize property.

Access functions:

QIcon icon() const
void setIcon(const QIcon \&icon)

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

iconSize instance-attribute

iconSize: QSize

Qt 5 reference:

iconSize : QSize

This property holds the icon size used for this button.

The default size is defined by the GUI style. This is a maximum size for the icons. Smaller icons will not be scaled up.

Access functions:

QSize iconSize() const
void setIconSize(const QSize \&size)

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

initPainter

initPainter(painter: Any) -> Any

X.initPainter(painter)

inputMethodEvent

inputMethodEvent(arg__1: Any) -> Any

X.inputMethodEvent(arg__1)

inputMethodHints instance-attribute

inputMethodHints: Any

inputMethodQuery

inputMethodQuery(arg__1: Any) -> Any

X.inputMethodQuery(arg__1) -> object

insertAction

insertAction(before: Any, action: Any) -> Any

X.insertAction(before, action)

insertActions

insertActions(before: Any, actions: Any) -> Any

X.insertActions(before, actions)

isActiveWindow instance-attribute

isActiveWindow: Any

isAncestorOf

isAncestorOf(child: Any) -> bool

X.isAncestorOf(child) -> bool

isCheckable

isCheckable() -> bool

X.isCheckable() -> bool

Upstream PySide2 reference signatures (binding differences may apply):

isCheckable(self) -> bool

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

isChecked

isChecked() -> bool

X.isChecked() -> bool

Upstream PySide2 reference signatures (binding differences may apply):

isChecked(self) -> bool

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