Hello;
I need to write an editor (similar to Microsoft Visio) allowing the drawing of a hierarchical finite state machine and eventually generate the structure of the state machine into a XML. I have the following requirements:
- State: a clickable, highlightable, drag and drop resizable rectangle. A text (the state name) shall be displayed inside the rectangle at the top leaving the center empty for an eventual substate.
- A Substate: just a state inside a state
- Transition: a line joining two states. A text (the event name corresponding to the transition) shall be displayed along the line.
The State, Substate and Transition will reside in a toolbox and will be dragged into a drawing area and drop there by the user.
Should I use Graphics Items?
Any sample code and pointers to good links?
My requirement is to stick to Qt Widgets.
Thanks;
Mut.
Bookmarks