Nominate our 2022 Qt Champions!

What's the performance level of the QT State Machine Framework

  • I'm working on a project where using a State Machine makes very sense. At the moment we are doing it using switch-cases and loops. But I've been wanting to convert all of our code using the QT State Machine Framework.
    Right now, it seems a good fit, but my only concern is performance. This project is running on a Raspberry Pie and it needs to be fast and smooth. Having said all of this. Should I be concerned about the performance of the QT's State Machine Framework?

    edit: I'll be needing to run two qstatemachines at the same


  • Lifetime Qt Champion


    The only good answer is: benchmark.

    In any case, Qt's State Machine Framework is not know to be slow so unless you're expecting speed of light it should run well enough.