Results 1 to 2 of 2

Thread: Vertical Header For QTreeView

  1. #1
    Join Date
    May 2009
    Location
    Gorontalo
    Posts
    200
    Thanks
    20
    Thanked 5 Times in 5 Posts
    Qt products
    Platforms
    Unix/X11 Windows

    Question Vertical Header For QTreeView

    I find there treeview that has a vertical header here . Unfortunately not free software so difficult to find out how he adds the vertical header. Does anyone have an example for add a vertical header in QTreeView ?

  2. #2
    Join Date
    Jul 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Vertical Header For QTreeView

    Unfortunately I didn't find too QTreeView realization of vertical header. The simple way - write your own version of the function
    Qt Code:
    1. void drawBranches(QPainter* painter, const QRect& rect, const QModelIndex& index) cons
    To copy to clipboard, switch view to plain text mode 
    Look at attached files - there is example I used in my project. May be it help you. It is not really vertical header, just a simulation of it
    Attached Files Attached Files

Similar Threads

  1. Replies: 3
    Last Post: 20th January 2011, 13:24
  2. Qtableview Vertical header order
    By Darthspawn in forum Qt Programming
    Replies: 4
    Last Post: 26th March 2010, 15:10
  3. No Sort Vertical Header
    By wirasto in forum Qt Programming
    Replies: 4
    Last Post: 1st July 2009, 10:54
  4. Replies: 3
    Last Post: 1st February 2008, 18:18
  5. Showing Icon in vertical header of a table
    By vishal.chauhan in forum Qt Programming
    Replies: 7
    Last Post: 15th January 2007, 10:44

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.