官术网_书友最值得收藏!

There's more…

The state machine framework in Qt provides classes for creating and executing state graphs. Qt's event system is used to drive the state machines, where transitions between states can be triggered by using signals, and then the slots on the other end will be invoked by the signals to perform an action, such as playing an animation.

Once you understand the basics of state machines, you can use them to do other things as well. The state graph in the state machine framework is hierarchical. Just like the animation group in the previous section, states can also be nested inside of other states:

主站蜘蛛池模板: 谢通门县| 邵东县| 抚宁县| 秀山| 汤阴县| 奉化市| 疏附县| 隆尧县| 天台县| 宜城市| 保山市| 乐安县| 新河县| 长汀县| 如皋市| 扎囊县| 体育| 启东市| 达尔| 乌鲁木齐县| 宜都市| 博乐市| 新宾| 余庆县| 凤翔县| 若尔盖县| 合作市| 绿春县| 衡南县| 浦城县| 禄劝| 山东| 新源县| 洪江市| 佛坪县| 会理县| 连州市| 新巴尔虎左旗| 萝北县| 定兴县| 黄平县|