PDA

View Full Version : Drawing rectangle containers ;



mut
24th June 2014, 18:26
Hello;

I'm building an editor (similar to MS Visio) to draw a hierarchical finite state machine. Hence I need to draw rectangles (states) that are:

- Highlightable
- Selectable
- Support for Drag and Drop within the drawing area.
- Rectangle content is dragged with the rectangle itself.

I wonder which UI components should I use for:
- My rectangle
- The drawing area

Please refer to inserted images for the two possible hierarchies.
10441
10442

Ginsengelf
25th June 2014, 08:09
Hi, QGraphicsView and friends will help you.

Ginsengelf