Results 1 to 1 of 1

Thread: QTreeView header overlapping viewport

  1. #1
    Join Date
    May 2011
    Posts
    20
    Platforms
    Unix/X11
    Thanked 3 Times in 3 Posts

    Default Re: QTreeView header overlapping viewport

    I need to set the height of the horizontal header in a QTreeview to a fixed height.

    When I do treeview->header()->setFixedHeight() the header resizes as expected but the header then covers some of the viewport. This results in data located in the tree to be covered by the header. How do I prevent this from happening?


    Added after 1 28 minutes:


    Well I found a solution http://qt-project.org/forums/viewthread/9420

    this is really annoying. It seems like this should be default behavior of a tree and not something the user has to implement.
    Last edited by snydesc; 24th September 2012 at 21:05.

Similar Threads

  1. Show Icons in Header of QTreeView
    By blackbubblegum in forum Qt Programming
    Replies: 2
    Last Post: 11th February 2012, 00:55
  2. Vertical Header For QTreeView
    By wirasto in forum Qt-based Software
    Replies: 1
    Last Post: 12th October 2010, 05:53
  3. Rename a QTreeView->header() column??
    By killerwookie99 in forum Newbie
    Replies: 1
    Last Post: 15th August 2008, 20:19
  4. How to determine the header row height in QTreeView
    By ghorwin in forum Qt Programming
    Replies: 3
    Last Post: 20th September 2007, 19:39
  5. qt4+xp: QTreeView w/o header ?
    By incapacitant in forum Newbie
    Replies: 1
    Last Post: 5th March 2006, 18:00

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.