Results 1 to 4 of 4

Thread: how to create a tree with check on branch?

  1. #1
    Join Date
    Dec 2008
    Posts
    68

    Default how to create a tree with check on branch?

    Hi,

    I am trying to design a tree ( or list view) with checks at each branch, as shown in the attached image file.

    Could anyone help ?

    thank you!
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Knivsta, Sweden
    Posts
    153
    Thanks
    30
    Thanked 13 Times in 12 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: how to create a tree with check on branch?

    Have you looked at QTreeWidget ?

  3. #3
    Join Date
    Dec 2008
    Posts
    68

    Default Re: how to create a tree with check on branch?

    Yes, I did.

    But there seems no such option to set it on.

    Could you let me know which function/flag to enable the checkbox at branch?

    Thank you!

  4. #4
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to create a tree with check on branch?

    see this method
    void QTreeWidgetItem::setCheckState ( int column, Qt::CheckState state )
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

Similar Threads

  1. Replies: 3
    Last Post: 11th September 2008, 20:08
  2. Check and Uncheck on a Dir Tree?
    By vishal.chauhan in forum Qt Programming
    Replies: 2
    Last Post: 3rd July 2007, 11:55

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.