This examples shows how to construct a simple KDSME::StateMachine and show it in a KDSME::StateMachineView
#include "config-examples.h"
#include <state.h>
#include <statemachinescene.h>
#include <statemachineview.h>
#include <transition.h>
#include <QApplication>
#include <QDebug>
int main(int argc, char** argv)
{
QApplication app(argc, argv);
s2.setLabel("s2");
s1.
addSignalTransition(&s2);
view.
scene()->
setRootState(&machine);
view.resize(800, 600);
view.show();
app.exec();
}