PySide6.Qt3DInput.Qt3DInput.QAction¶
- class QAction¶
Links a set of
QAbstractActionInput
that trigger the same event. More…Synopsis¶
Properties¶
Methods¶
def
__init__()
def
addInput()
def
inputs()
def
isActive()
def
removeInput()
Signals¶
def
activeChanged()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property activeᅟ: bool¶
Holds
true
if the action is active.Note this property is not updated when the action is disabled.
- Access functions:
Signal
activeChanged()
- __init__([parent=None])¶
- Parameters:
parent –
QNode
Constructs a new
QAction
instance with parentparent
.- activeChanged(isActive)¶
- Parameters:
isActive – bool
Notification signal of property
activeᅟ
.- addInput(input)¶
- Parameters:
input –
QAbstractActionInput
Append
QAbstractActionInput
input
to the list of inputs that can trigger this action.- inputs()¶
- Return type:
.list of Qt3DInput.QAbstractActionInput
Returns the list of inputs that can trigger this action.
- isActive()¶
- Return type:
bool
Getter of property
activeᅟ
.- removeInput(input)¶
- Parameters:
input –
QAbstractActionInput
Remove
QAbstractActionInput
input
to the list of inputs that can trigger this action.