PDA

View Full Version : Tree related representation



aegis
12th August 2007, 13:16
Hi, i have a tree structure madeup of tree nodes like this one:



class TreeNode {

TreeNode* LeftChild;
TreeNode* RightChild;
int data;
}


And i would like to graphically represent this... Is there any "easy" way that i am not aware of?

Thank you for your time,
NA

marcel
12th August 2007, 13:20
A QGraphicsView would be the best.
You could use graphics items to represent your data.

There is no existing view that displays items in that way.

Regards