Results 1 to 2 of 2

Thread: Tree related representation

  1. #1
    Join Date
    Feb 2007
    Posts
    42
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Tree related representation

    Hi, i have a tree structure madeup of tree nodes like this one:

    Qt Code:
    1. class TreeNode {
    2.  
    3. TreeNode* LeftChild;
    4. TreeNode* RightChild;
    5. int data;
    6. }
    To copy to clipboard, switch view to plain text mode 

    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

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Tree related representation

    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

Similar Threads

  1. Replies: 12
    Last Post: 7th February 2007, 13:30
  2. Optimizing filterAcceptsRow() to filter a tree
    By vfernandez in forum Qt Programming
    Replies: 1
    Last Post: 4th January 2007, 12:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.