InputSettings QML Type
InputSettings 保存指向输入事件源对象的指针。更多...
| Import Statement: | import Qt3D.Input 2.12 |
| In C++: | QInputSettings |
| Inherits: | |
| Status: | Deprecated |
此类型已弃用。我们强烈建议不要在新代码中使用它。
属性
- eventSource : QtObject
详细说明
InputSettings 组件必须设置为场景根实体的子组件。它存储了一个指向对象的指针,该对象作为输入事件的源,供各种输入类进行处理。例如,一个 Window 实例可以作为事件源。
另请参阅 MouseDevice 和KeyboardDevice 。
属性文档
eventSource : QtObject
保存当前的事件源。事件源是一个能够接收各种输入事件(例如鼠标或键盘事件)的对象。通常,它是一个 Window 实例。
© 2026 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.