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 misses events while transitons are not complete
Qt 6.11 is out! See what's new in the release blog

QStateMachine misses events while transitons are not complete

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 883 Views 1 Watching
  • 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.
  • M Offline
    M Offline
    mikecarlos
    wrote on last edited by
    #1

    Hi,

    I am using a QStateMachine to animate things. I use my custom event and use QStateMachine::postEvent to switch between states. While switching the states there are animations which take a while. I post an event to switch to StateA. While the animations are taking place I post another event to switch to StateB. But the second event never gets processed. Whereas if I post the second event after the transitions are complete everything works fine.

    How can I tell the QStateMachine to process events in its queue, after the transitions are complete so an event never gets missed?

    thanks
    mike

    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