Results 1 to 3 of 3

Thread: Treeview Structure

  1. #1
    Join Date
    May 2009
    Posts
    94
    Thanks
    10
    Qt products
    Qt4
    Platforms
    Windows

    Arrow Treeview Structure

    I want to create a tree view structure.For this i am using QTreeWidgetItem.In the tree structure i want to disble expansion/contraction chech box.
    Help me to disble/remove the the check box.I want only tree like structure.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Treeview Structure

    How about using QTreeWidget::setRootIsDecorated ??

    If doesnt work, just use delegates (QItemDelegate) and override the QItemDelegate::drawDecoration function.

  3. #3
    Join Date
    May 2009
    Posts
    94
    Thanks
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Treeview Structure

    Quote Originally Posted by bismitapadhy View Post
    I want to create a tree view structure.For this i am using QTreeWidgetItem.In the tree structure i want to disble expansion/contraction button aswell as qtrrewidget header..
    Help me to disble/remove the expandable button and treewidget header.
    In the tree structure i want to disble expansion/contraction button aswell as qtrrewidget header..

Similar Threads

  1. sending structure through udp socket programming
    By hemrajn in forum Qt Programming
    Replies: 9
    Last Post: 15th May 2009, 23:55
  2. Problem with auto expand on treeview
    By piquadrat in forum Qt Programming
    Replies: 1
    Last Post: 26th April 2009, 11:21
  3. failing to achieve desired size of a BitField structure
    By nass in forum General Programming
    Replies: 8
    Last Post: 13th February 2007, 13:29
  4. speed of setdata - lots of items in treeview
    By Big Duck in forum Qt Programming
    Replies: 4
    Last Post: 6th July 2006, 12:53
  5. Replies: 1
    Last Post: 1st March 2006, 11:43

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.