Results 1 to 20 of 20

Thread: Hide the branches in a QTreeWidget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: Hide the branches in a QTreeWidget

    Mom, look what I did!! Heh, this was kinda interesting so I gave it a shot. Never played too much with styles...

    Create an instance of the attached style and set it for your treewidget (QWidget::setStyle(QStyle*)).
    And remember to remove the empty drawBranches() from your treewidget..
    Attached Images Attached Images
    Attached Files Attached Files

  2. The following 3 users say thank you to jpn for this useful post:

    gfunk (30th May 2006), josh (3rd April 2007), WinchellChung (6th June 2007)

Similar Threads

  1. resizing a QTreeWidget
    By drhex in forum Qt Programming
    Replies: 6
    Last Post: 27th October 2006, 22:32

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.