Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QStateMachine use in complex situations

QStateMachine use in complex situations

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 644 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • bhupiB Offline
    bhupiB Offline
    bhupi
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved