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

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:

主站蜘蛛池模板: 宜兰市| 廉江市| 淮安市| 资中县| 甘孜县| 河源市| 沈丘县| 重庆市| 文登市| 方山县| 冷水江市| 罗定市| 砀山县| 华亭县| 嵊泗县| 洛隆县| 凤山县| 涞源县| 桐梓县| 满城县| 射洪县| 芮城县| 保靖县| 施甸县| 故城县| 鸡泽县| 花垣县| 合江县| 湟源县| 瓦房店市| 双牌县| 平利县| 额敏县| 额尔古纳市| 九寨沟县| 陇南市| 民丰县| 台中市| 姚安县| 蒲江县| 六安市|