Results 1 to 3 of 3

Thread: About TreeModel and TreeItem?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2009
    Posts
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default About TreeModel and TreeItem?

    I want to my programme works as:


    My programme has one or more root nodes.
    Each node has no or one or more nodes 、leaf.
    Each node and leaf have own property ,such as name、icon、ID. Some property will display(such as name),some will not display(such as ID).

    I inherit my TreeItem form QStandardItem and inherit my TreeModel from QStandardItemModel. Is it suitable?

    I cannot completely understand QStandardItem.Could you give me more helps?Thanks a lot.
    Attached Images Attached Images

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
  •  
Qt is a trademark of The Qt Company.