PythonQt.QtGui.QActionGroup · declarations 001
Back to PythonQt.QtGui.QActionGroup
ExclusionPolicy
instance-attribute
ExclusionPolicy: 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
Exclusive
instance-attribute
Exclusive: Any
ExclusiveOptional
instance-attribute
ExclusiveOptional: Any
actions
actions() -> tuple
X.actions() -> tuple
Supplemental documentation: Qt 5 reference:
QList\<QAction *> QActionGroup::actions() const
Returns the list of this groups's actions. This may be empty.
Upstream PySide2 reference signatures (binding differences may apply):
actions(self) -> typing.List[PySide2.QtWidgets.QAction]
Source: https://doc.qt.io/archives/qt-5.15/qactiongroup.html#actions
addAction
addAction(icon: Any, text: Any) -> Any
X.addAction(icon, text) -> PythonQt.QtGui.QAction
Supplemental documentation: Qt 5 reference:
QAction *QActionGroup::addAction(QAction *action)
Adds the action to this group, and returns it.
Normally an action is added to a group by creating it with the group as its parent, so this function is not usually used.
See also QAction::setActionGroup().
QAction *QActionGroup::addAction(const QString \&text)
Creates and returns an action with text. The newly created action is a child of this action group.
Normally an action is added to a group by creating it with the group as parent, so this function is not usually used.
See also QAction::setActionGroup().
QAction *QActionGroup::addAction(const QIcon \&icon, const QString \&text)
Creates and returns an action with text and an icon. The newly created action is a child of this action group.
Normally an action is added to a group by creating it with the group as its parent, so this function is not usually used.
See also QAction::setActionGroup().
Upstream PySide2 reference signatures (binding differences may apply):
addAction(self, a: PySide2.QtWidgets.QAction) -> PySide2.QtWidgets.QAction
addAction(self, icon: PySide2.QtGui.QIcon, text: str) -> PySide2.QtWidgets.QAction
addAction(self, text: str) -> PySide2.QtWidgets.QAction
Source: https://doc.qt.io/archives/qt-5.15/qactiongroup.html#addAction
checkedAction
checkedAction() -> Any
X.checkedAction() -> PythonQt.QtGui.QAction
Supplemental documentation: Qt 5 reference:
QAction *QActionGroup::checkedAction() const
Returns the currently checked action in the group, or nullptr if none are checked.
Upstream PySide2 reference signatures (binding differences may apply):
checkedAction(self) -> PySide2.QtWidgets.QAction
Source: https://doc.qt.io/archives/qt-5.15/qactiongroup.html#checkedAction
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QActionGroup.destroyed; argument details are not documented.
enabled
instance-attribute
enabled: Any
Qt 5 reference:
enabled : bool
This property holds whether the action group is enabled
Each action in the group will be enabled or disabled unless it has been explicitly disabled.
Access functions:
| bool | isEnabled() const |
|---|---|
| void | setEnabled(bool) |
See also QAction::setEnabled().
Source: https://doc.qt.io/archives/qt-5.15/qactiongroup.html#enabled
exclusionPolicy
instance-attribute
exclusionPolicy: Any
Qt 5 reference:
exclusionPolicy : QActionGroup::ExclusionPolicy
This property holds the group exclusive checking policy
If exclusionPolicy is set to Exclusive, only one checkable action in the action group can ever be active at any time. If the user chooses another checkable action in the group, the one they chose becomes active and the one that was active becomes inactive. If exclusionPolicy is set to ExclusionOptional the group is exclusive but the active checkable action in the group can be unchecked leaving the group with no actions checked.
This property was introduced in Qt 5.14.
Access functions:
| QActionGroup::ExclusionPolicy | exclusionPolicy() const |
|---|---|
| void | setExclusionPolicy(QActionGroup::ExclusionPolicy policy) |
See also QAction::checkable.
Source: https://doc.qt.io/archives/qt-5.15/qactiongroup.html#exclusionPolicy
hovered
hovered(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QActionGroup.hovered; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QActionGroup::hovered(QAction *action)
This signal is emitted when the given action in the action group is highlighted by the user; for example, when the user pauses with the cursor over a menu option, toolbar button, or presses an action's shortcut key combination.
See also QAction::activate().
Source: https://doc.qt.io/archives/qt-5.15/qactiongroup.html#hovered
isEnabled
isEnabled() -> bool
X.isEnabled() -> bool
Upstream PySide2 reference signatures (binding differences may apply):
isEnabled(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qactiongroup.html#isEnabled
isExclusive
isExclusive() -> bool
X.isExclusive() -> bool
Supplemental documentation: Qt 5 reference:
bool QActionGroup::isExclusive() const
Returns true if the group is exclusive
The group is exclusive if the ExclusionPolicy is either Exclusive or ExclusionOptional.
Upstream PySide2 reference signatures (binding differences may apply):
isExclusive(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qactiongroup.html#isExclusive
isVisible
isVisible() -> bool
X.isVisible() -> bool
Upstream PySide2 reference signatures (binding differences may apply):
isVisible(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qactiongroup.html#isVisible
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QActionGroup.objectNameChanged; argument details are not documented.
removeAction
removeAction(a: Any) -> None
X.removeAction(a)
Supplemental documentation: Qt 5 reference:
void QActionGroup::removeAction(QAction *action)
Removes the action from this group. The action will have no parent as a result.
See also QAction::setActionGroup().
Upstream PySide2 reference signatures (binding differences may apply):
removeAction(self, a: PySide2.QtWidgets.QAction) -> None
Source: https://doc.qt.io/archives/qt-5.15/qactiongroup.html#removeAction
setDisabled
setDisabled(b: bool) -> None
X.setDisabled(b)
Supplemental documentation: Qt 5 reference:
[slot] void QActionGroup::setDisabled(bool b)
This is a convenience function for the enabled property, that is useful for signals--slots connections. If b is true the action group is disabled; otherwise it is enabled.
Upstream PySide2 reference signatures (binding differences may apply):
setDisabled(self, b: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qactiongroup.html#setDisabled
setEnabled
setEnabled(a: Any) -> None
X.setEnabled(a)
Upstream PySide2 reference signatures (binding differences may apply):
setEnabled(self, arg__1: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qactiongroup.html#setEnabled
setExclusionPolicy
setExclusionPolicy(policy: Any) -> None
X.setExclusionPolicy(policy)
Upstream PySide2 reference signatures (binding differences may apply):
setExclusionPolicy(self, policy: PySide2.QtWidgets.QActionGroup.ExclusionPolicy) -> None
Source: https://doc.qt.io/archives/qt-5.15/qactiongroup.html#setExclusionPolicy
setExclusive
setExclusive(a: Any) -> None
X.setExclusive(a)
Supplemental documentation: Qt 5 reference:
[slot] void QActionGroup::setExclusive(bool b)
Enable or disable the group exclusion checking
This is a convenience method that calls setExclusionPolicy(ExclusionPolicy::Exclusive) when b is true, else setExclusionPolicy(QActionGroup::ExclusionPolicy::None).
See also isExclusive() and QActionGroup::exclusionPolicy.
Upstream PySide2 reference signatures (binding differences may apply):
setExclusive(self, arg__1: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qactiongroup.html#setExclusive
setVisible
setVisible(a: Any) -> None
X.setVisible(a)
Upstream PySide2 reference signatures (binding differences may apply):
setVisible(self, arg__1: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qactiongroup.html#setVisible
triggered
triggered(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QActionGroup.triggered; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QActionGroup::triggered(QAction *action)
This signal is emitted when the given action in the action group is activated by the user; for example, when the user clicks a menu option, toolbar button, or presses an action's shortcut key combination.
Connect to this signal for command actions.
See also QAction::activate().
Source: https://doc.qt.io/archives/qt-5.15/qactiongroup.html#triggered
visible
instance-attribute
visible: Any
Qt 5 reference:
visible : bool
This property holds whether the action group is visible
Each action in the action group will match the visible state of this group unless it has been explicitly hidden.
Access functions:
| bool | isVisible() const |
|---|---|
| void | setVisible(bool) |
See also QAction::setEnabled().
Source: https://doc.qt.io/archives/qt-5.15/qactiongroup.html#visible