Results 1 to 2 of 2

Thread: What widget i should use

  1. #1
    Join Date
    Oct 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default What widget i should use

    Hello guys. This probably is a very newbie question but im having a hard time with this. I have an object that i want to show in a TreeView (or TreeWidget), idk the best to use.
    What i want is: my object is a Player with 2 attributtes, score and name for example, them i want a tree view like this

    ----Jogador
    --------score
    --------name
    ----Jogador
    --------score
    --------name

    how can i achieve this?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: What widget i should use

    By reading the docs to QTreeWidget or read about the model and view concept. There are also tutorials and examples shipped with the docs and one ore two surely use a QTree***. So just look there.

    Or ask a more precise question (for a smaller problem)/what have you tried so far?

Similar Threads

  1. Replies: 1
    Last Post: 23rd June 2011, 23:09
  2. Replies: 1
    Last Post: 11th March 2011, 19:34
  3. Replies: 10
    Last Post: 29th May 2010, 18:42
  4. Replies: 4
    Last Post: 3rd March 2008, 22:15
  5. Replies: 1
    Last Post: 5th November 2006, 23: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.