Qt State Machine 示例
Qt State Machine 示例应用程序展示了 Qt State Machine 模块所提供的功能。
“移动方块”示例展示了如何使用带有自定义过渡效果的 QStateMachine 在 QGraphicsScene 中为项目添加动画效果。 | |
“Ping Pong States”示例展示了如何在Qt State Machine 框架中将并行状态与自定义事件和过渡结合使用。 | |
“Rogue”示例展示了如何使用 Qt State Machine 进行事件处理。 | |
“Traffic Light”示例展示了如何使用Qt State Machine 概览来实现交通信号灯的控制流。 |
© 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.