Hello, we are using Qt State Machines in a number of places in our applications to manage object states for certain types of objects. Occasionally I would like to use and manipulate such objects in a non-event-driven context, i.e. without a running event loop. Short of a StateMachine function that allows me to wait for outstanding transitions to be completed, I wrote a little helper function that instantiates a `QEventLoop`, then calls `processEvents(QEventLoop::ExcludeUserInputEvents)` to drain the event queue and thus make sure that all in-flight transitions have been completed. While this appears to be working fine, I'm not sure this is the best way (or at the very least, a particularly elegant way) to achieve what I want.
Is the above a "correct" way to get what I want ? Is there a better way ? Thanks, ...ich hab' noch einen Koffer in Berlin...
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest