PySide6.Qt3DInput.Qt3DInput.QAction¶
- class QAction¶
链接一组触发相同事件的
QAbstractActionInput
。更多…概要¶
属性¶
方法¶
def
__init__()
def
addInput()
def
inputs()
def
isActive()
def
removeInput()
信号¶
def
activeChanged()
注意
本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。
详细描述¶
注意
当使用
from __feature__ import true_property
时,属性可以直接使用,否则通过访问器函数使用。- property activeᅟ: bool¶
如果操作处于活动状态,则保持
true
。请注意,当操作被禁用时,此属性不会更新。
- Access functions:
- __init__([parent=None])¶
- Parameters:
parent –
QNode
使用父级
parent
构造一个新的QAction
实例。- activeChanged(isActive)¶
- Parameters:
isActive – 布尔值
属性
activeᅟ
的通知信号。- addInput(input)¶
- Parameters:
输入 –
QAbstractActionInput
将
QAbstractActionInput
input
添加到可以触发此操作的输入列表中。- inputs()¶
- Return type:
返回可以触发此操作的输入列表。
- isActive()¶
- Return type:
布尔
属性
activeᅟ
的获取器。- removeInput(input)¶
- Parameters:
输入 –
QAbstractActionInput
移除
QAbstractActionInput
input
到可以触发此操作的输入列表中。