QInputChord represents a set of QAbstractActionInput 's that must be triggerd at once. 更多...
| 頭: |
#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 ) |
The time in which all QAbstractActionInput 's in the input chord must triggered within. The time is in milliseconds.
訪問函數:
| int | timeout () const |
| void | setTimeout (int timeout ) |
通知程序信號:
| void | timeoutChanged (int timeout ) |
[explicit]
QInputChord::
QInputChord
(
Qt3DCore::QNode
*
parent
= nullptr)
Constructs a new QInputChord with parent parent .
Append the QAbstractActionInput input to the end of this QInputChord 's chord vector.
另請參閱 removeChord .
返迴 QInputChord 's chord vector.
Remove the QAbstractActionInput input 從此 QInputChord 's chord vector.
另請參閱 addChord .
[slot]
void
QInputChord::
setTimeout
(
int
timeout
)
Sets the time in which all QAbstractActionInput 's in the input chord must triggered within to timeout . The time is in milliseconds
注意: setter 函數對於特性 timeout .
另請參閱 timeout ().