![]() |
Reference documentation
|
The GraphModel class provides a specific model for Graph viewes. More...
Signals | |
| void | updateEdges () |
| This signal is emitted when an new edge has been added. | |
Public Member Functions | |
| void | addEdge (const QModelIndex &idx1, const QModelIndex &idx2, Edge::Type type=Edge::NoArrow) |
Add an edge between the two nodes referenced by the QModelIndex idx1 and idx2. | |
| void | addEdge (int row1, int col1, int row2, int col2, Edge::Type type=Edge::NoArrow) |
| Add an edge between the two nodes referenced by the coordinates ([row1], [col1]) and ([row2], [col2]). | |
| QList< Edge > | edges () const |
| Returns the list of edges. | |
The GraphModel class provides a specific model for Graph viewes.
The GraphModel inherits QStandardItemModel and can store the edges between items.
1.8.6