[Interest] [Announcement] StateMachineViewer
Peter Kümmel
syntheticpp at gmx.net
Sat Oct 4 13:40:25 CEST 2014
I've created a stand alone class to visualize QStateMachine states.
It's based on GammaRay's state machine plugin, and has graphviz integrated to simplify building (especially on Windows):
https://github.com/syntheticpp/StateMachineViewer
Usage is very simple:
StateMachineViewer is designed to be linked into an existing application.
Projects using CMake should add this project with 'add_subdirectory()' and link against 'statemachineviewer'.
Example code:
#include "statemachineviewer.h"
StateMachineViewer* showStateMachine(QStateMachine* machine)
{
StateMachineViewer* smv = new StateMachineViewer();
smv->setStateMachine(machine);
smv->show();
return smv;
}
Attached a saved state chart from the trafficlight example.
Cheers,
Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trafficlight.png
Type: image/png
Size: 45449 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20141004/c06c9ed8/attachment.png>
More information about the Interest
mailing list