In the Model Explorer right-click on the Class to which you want to add the state machine and select Add State Machine from the popup menu.
As shown in the screen shot below, you can easily resize the Drawing Canvas of a State Diagram by dragging its right or bottom edges, or by dragging the resize handle in the bottom-right corner of the canvas. In each case the mouse cursor indicates the possible direction of resizing.
Statechart items can be configured by the Statechart-Specific Property Sheet.
The statechart-item property sheet contains the following properties:
Checkbox that turns on/off the automatic generation of the QS_FUN_DICTIONARY()↑ macros for all states of a given statechart. The dictionary macros are generated in the top-most initial transition of the statechart. Below is an example of generated code with the QS_FUN_DICTIONARY()
macros:
The documentation entry in the Statechart Property Sheet allows you to provide documentation to the statechart. The QM code generator parses the documentation entry and can generate comments for the top-most initial transition of this statechart.