Qt3DInput::QInputChord Class

class Qt3DInput::QInputChord

QInputChord 表示一组必须同时触发的QAbstractActionInput's。更多

头文件: #include <QInputChord>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
在 QML 中: InputChord
继承: Qt3DInput::QAbstractActionInput
状态:已废弃

属性

公共功能

QInputChord(Qt3DCore::QNode *parent = nullptr)
void addChord(Qt3DInput::QAbstractActionInput *input)
QList<Qt3DInput::QAbstractActionInput *> chords() const
void removeChord(Qt3DInput::QAbstractActionInput *input)
int timeout() const

公共插槽

void setTimeout(int timeout)

信号

void timeoutChanged(int timeout)

详细说明

属性文档

timeout : int

输入和弦中所有QAbstractActionInput 的触发时间。时间单位为毫秒。

访问功能:

int timeout() const
void setTimeout(int timeout)

Notifier 信号:

void timeoutChanged(int timeout)

成员函数 文档

[explicit] QInputChord::QInputChord(Qt3DCore::QNode *parent = nullptr)

构建一个新的 QInputChord,其父节点为parent

void QInputChord::addChord(Qt3DInput::QAbstractActionInput *input)

QAbstractActionInput input 追加到QInputChord 的弦向量末尾。

另请参见 removeChord

QList<Qt3DInput::QAbstractActionInput *> QInputChord::chords() const

返回QInputChord 的弦向量。

void QInputChord::removeChord(Qt3DInput::QAbstractActionInput *input)

QInputChord 的弦向量中删除QAbstractActionInput input

另请参见 addChord

[slot] void QInputChord::setTimeout(int timeout)

设置输入和弦中所有QAbstractActionInput's 必须在timeout 内触发的时间。时间单位为毫秒。

注: 属性timeout 的设置函数。

另请参阅 timeout() 。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.