PythonQt.QtGui.QToolButton · declarations 001
Back to PythonQt.QtGui.QToolButton
DelayedPopup
instance-attribute
DelayedPopup: Any
InstantPopup
instance-attribute
InstantPopup: Any
ToolButtonPopupMode
instance-attribute
ToolButtonPopupMode: 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
actionEvent
actionEvent(arg__1: Any) -> None
X.actionEvent(arg__1)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QToolButton::actionEvent(QActionEvent *event)
Reimplements: QWidget::actionEvent(QActionEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
actionEvent(self, arg__1: PySide2.QtGui.QActionEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#actionEvent
arrowType
instance-attribute
arrowType: Any
Qt 5 reference:
arrowType : Qt::ArrowType
This property holds whether the button displays an arrow instead of a normal icon
This displays an arrow as the icon for the QToolButton.
By default, this property is set to Qt::NoArrow.
Access functions:
| Qt::ArrowType | arrowType() const |
|---|---|
| void | setArrowType(Qt::ArrowType type) |
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#arrowType
autoRaise
instance-attribute
autoRaise: bool
Qt 5 reference:
autoRaise : bool
This property holds whether auto-raising is enabled or not.
The default is disabled (i.e. false).
This property is currently ignored on macOS when using QMacStyle.
Access functions:
| bool | autoRaise() const |
|---|---|
| void | setAutoRaise(bool enable) |
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#autoRaise
changeEvent
changeEvent(arg__1: Any) -> None
X.changeEvent(arg__1)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QToolButton::changeEvent(QEvent *e)
Reimplements: QAbstractButton::changeEvent(QEvent *e).
Upstream PySide2 reference signatures (binding differences may apply):
changeEvent(self, arg__1: PySide2.QtCore.QEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#changeEvent
clicked
clicked(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QToolButton.clicked; argument details are not documented.
customContextMenuRequested
customContextMenuRequested(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QToolButton.customContextMenuRequested; argument details are not documented.
defaultAction
defaultAction() -> Any
X.defaultAction() -> PythonQt.QtGui.QAction
Supplemental documentation: Qt 5 reference:
QAction *QToolButton::defaultAction() const
Returns the default action.
See also setDefaultAction().
Upstream PySide2 reference signatures (binding differences may apply):
defaultAction(self) -> PySide2.QtWidgets.QAction
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#defaultAction
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QToolButton.destroyed; argument details are not documented.
enterEvent
enterEvent(arg__1: Any) -> None
X.enterEvent(arg__1)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QToolButton::enterEvent(QEvent *e)
Reimplements: QWidget::enterEvent(QEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
enterEvent(self, arg__1: PySide2.QtCore.QEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#enterEvent
event
event(e: Any) -> bool
X.event(e) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual protected] bool QToolButton::event(QEvent *event)
Reimplements: QAbstractButton::event(QEvent *e).
Upstream PySide2 reference signatures (binding differences may apply):
event(self, e: PySide2.QtCore.QEvent) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#event
hitButton
hitButton(pos: Any) -> bool
X.hitButton(pos) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual protected] bool QToolButton::hitButton(const QPoint \&pos) const
Reimplements: QAbstractButton::hitButton(const QPoint \&pos) const.
Upstream PySide2 reference signatures (binding differences may apply):
hitButton(self, pos: PySide2.QtCore.QPoint) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#hitButton
initStyleOption
initStyleOption(option: Any) -> None
X.initStyleOption(option)
Supplemental documentation: Qt 5 reference:
[protected] void QToolButton::initStyleOption(QStyleOptionToolButton *option) const
Initialize option with the values from this QToolButton. This method is useful for subclasses when they need a QStyleOptionToolButton, but don't want to fill in all the information themselves.
See also QStyleOption::initFrom().
Upstream PySide2 reference signatures (binding differences may apply):
initStyleOption(self, option: PySide2.QtWidgets.QStyleOptionToolButton) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#initStyleOption
leaveEvent
leaveEvent(arg__1: Any) -> None
X.leaveEvent(arg__1)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QToolButton::leaveEvent(QEvent *e)
Reimplements: QWidget::leaveEvent(QEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
leaveEvent(self, arg__1: PySide2.QtCore.QEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#leaveEvent
menu
menu() -> Any
X.menu() -> PythonQt.QtGui.QMenu
Supplemental documentation: Qt 5 reference:
QMenu *QToolButton::menu() const
Returns the associated menu, or nullptr if no menu has been defined.
See also setMenu().
Upstream PySide2 reference signatures (binding differences may apply):
menu(self) -> PySide2.QtWidgets.QMenu
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#menu
minimumSizeHint
instance-attribute
minimumSizeHint: QSize
Qt 5 reference:
[override virtual] QSize QToolButton::minimumSizeHint() const
Reimplements an access function for property: QWidget::minimumSizeHint.
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#minimumSizeHint
mousePressEvent
mousePressEvent(arg__1: Any) -> None
X.mousePressEvent(arg__1)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QToolButton::mousePressEvent(QMouseEvent *e)
Reimplements: QAbstractButton::mousePressEvent(QMouseEvent *e).
Upstream PySide2 reference signatures (binding differences may apply):
mousePressEvent(self, arg__1: PySide2.QtGui.QMouseEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#mousePressEvent
mouseReleaseEvent
mouseReleaseEvent(arg__1: Any) -> None
X.mouseReleaseEvent(arg__1)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QToolButton::mouseReleaseEvent(QMouseEvent *e)
Reimplements: QAbstractButton::mouseReleaseEvent(QMouseEvent *e).
Upstream PySide2 reference signatures (binding differences may apply):
mouseReleaseEvent(self, arg__1: PySide2.QtGui.QMouseEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#mouseReleaseEvent
nextCheckState
nextCheckState() -> None
X.nextCheckState()
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QToolButton::nextCheckState()
Reimplements: QAbstractButton::nextCheckState().
Upstream PySide2 reference signatures (binding differences may apply):
nextCheckState(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#nextCheckState
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QToolButton.objectNameChanged; argument details are not documented.
paintEvent
paintEvent(arg__1: Any) -> None
X.paintEvent(arg__1)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QToolButton::paintEvent(QPaintEvent *event)
Reimplements: QAbstractButton::paintEvent(QPaintEvent *e).
Paints the button in response to the paint event.
Upstream PySide2 reference signatures (binding differences may apply):
paintEvent(self, arg__1: PySide2.QtGui.QPaintEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#paintEvent
popupMode
instance-attribute
popupMode: Any
Qt 5 reference:
popupMode : ToolButtonPopupMode
describes the way that popup menus are used with tool buttons
By default, this property is set to DelayedPopup.
Access functions:
| QToolButton::ToolButtonPopupMode | popupMode() const |
|---|---|
| void | setPopupMode(QToolButton::ToolButtonPopupMode mode) |
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#popupMode
pressed
pressed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QToolButton.pressed; argument details are not documented.
released
released(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QToolButton.released; argument details are not documented.
setArrowType
setArrowType(type: Any) -> None
X.setArrowType(type)
Upstream PySide2 reference signatures (binding differences may apply):
setArrowType(self, type: PySide2.QtCore.Qt.ArrowType) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#setArrowType
setAutoRaise
setAutoRaise(enable: bool) -> None
X.setAutoRaise(enable)
Upstream PySide2 reference signatures (binding differences may apply):
setAutoRaise(self, enable: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#setAutoRaise
setDefaultAction
setDefaultAction(a: Any) -> None
X.setDefaultAction(a)
Supplemental documentation: Qt 5 reference:
[slot] void QToolButton::setDefaultAction(QAction *action)
Sets the default action to action.
If a tool button has a default action, the action defines the following properties of the button:
- checkable
- checked
- enabled
- font
- icon
- popupMode (assuming the action has a menu)
- statusTip
- text
- toolTip
- whatsThis
Other properties, such as autoRepeat, are not affected by actions.
See also defaultAction().
Upstream PySide2 reference signatures (binding differences may apply):
setDefaultAction(self, arg__1: PySide2.QtWidgets.QAction) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#setDefaultAction
setMenu
setMenu(menu: Any) -> None
X.setMenu(menu)
Supplemental documentation: Qt 5 reference:
void QToolButton::setMenu(QMenu *menu)
Associates the given menu with this tool button.
The menu will be shown according to the button's popupMode.
Ownership of the menu is not transferred to the tool button.
See also menu().
Upstream PySide2 reference signatures (binding differences may apply):
setMenu(self, menu: PySide2.QtWidgets.QMenu) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#setMenu
setPopupMode
setPopupMode(mode: Any) -> None
X.setPopupMode(mode)
Upstream PySide2 reference signatures (binding differences may apply):
setPopupMode(self, mode: PySide2.QtWidgets.QToolButton.ToolButtonPopupMode) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#setPopupMode
setToolButtonStyle
setToolButtonStyle(style: Any) -> None
X.setToolButtonStyle(style)
Upstream PySide2 reference signatures (binding differences may apply):
setToolButtonStyle(self, style: PySide2.QtCore.Qt.ToolButtonStyle) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#setToolButtonStyle
showMenu
showMenu() -> None
X.showMenu()
Supplemental documentation: Qt 5 reference:
[slot] void QToolButton::showMenu()
Shows (pops up) the associated popup menu. If there is no such menu, this function does nothing. This function does not return until the popup menu has been closed by the user.
Upstream PySide2 reference signatures (binding differences may apply):
showMenu(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#showMenu
sizeHint
instance-attribute
sizeHint: QSize
Qt 5 reference:
[override virtual] QSize QToolButton::sizeHint() const
Reimplements an access function for property: QWidget::sizeHint.
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#sizeHint
timerEvent
timerEvent(arg__1: Any) -> None
X.timerEvent(arg__1)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QToolButton::timerEvent(QTimerEvent *e)
Reimplements: QAbstractButton::timerEvent(QTimerEvent *e).
Upstream PySide2 reference signatures (binding differences may apply):
timerEvent(self, arg__1: PySide2.QtCore.QTimerEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#timerEvent
toggled
toggled(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QToolButton.toggled; argument details are not documented.
toolButtonStyle
instance-attribute
toolButtonStyle: Any
Qt 5 reference:
toolButtonStyle : Qt::ToolButtonStyle
This property holds whether the tool button displays an icon only, text only, or text beside/below the icon.
The default is Qt::ToolButtonIconOnly.
To have the style of toolbuttons follow the system settings, set this property to Qt::ToolButtonFollowStyle. On Unix, the user settings from the desktop environment will be used. On other platforms, Qt::ToolButtonFollowStyle means icon only.
QToolButton automatically connects this slot to the relevant signal in the QMainWindow in which is resides.
Access functions:
| Qt::ToolButtonStyle | toolButtonStyle() const |
|---|---|
| void | setToolButtonStyle(Qt::ToolButtonStyle style) |
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#toolButtonStyle
triggered
triggered(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QToolButton.triggered; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QToolButton::triggered(QAction *action)
This signal is emitted when the given action is triggered.
The action may also be associated with other parts of the user interface, such as menu items and keyboard shortcuts. Sharing actions in this way helps make the user interface more consistent and is often less work to implement.
Source: https://doc.qt.io/archives/qt-5.15/qtoolbutton.html#triggered
windowIconChanged
windowIconChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QToolButton.windowIconChanged; argument details are not documented.
windowIconTextChanged
windowIconTextChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QToolButton.windowIconTextChanged; argument details are not documented.