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 manually setting a state

QStateMachine manually setting a state

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 775 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.
  • F Offline
    F Offline
    frankiefrank
    wrote on last edited by
    #1

    My use of QStateMachine is a bit different from what most of the documentation refer to, since I don't want to create transitions based on signals. I just want to be able to switch from state to state on my own, with a regular method call, and of course still trigger the relevant onExit() onEntry().

    What's the best way to do that?

    I see that someone asked this question on Qt-Centre:
    http://www.qtcentre.org/threads/50486-QStateMachine-set-state

    but the answer still involves working with the signals and transitions.

    "Roads? Where we're going, we don't need roads."

    1 Reply Last reply
    0

    • Login

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