Unsolved QStateMachine use in complex situations
-
hi
I am working on a application which deal with many QWidgets. I want to know way how navigation can be done within widgets.
http://stackoverflow.com/questions/9306379/how-to-dynamically-hide-show-widgets/9306727
From the above link i find that The State Machine Framework is for dealing complex situations. Can someone through light how it will beneficial in handling widgets navigation. what are its benefits.
Thanks
-
@bhupi said:
State Machine Framework
Well one benefit is that you can set up complex states that would be
epic gigant mess using if-then-else structure. -
To add to what @mrjj said, don't write the C++ code for the statemachine by hand. This will also quickly lead to a giant mess. Use a code generator.