Results 1 to 2 of 2

Thread: How to Add a Button in QTreeWidget Header?

  1. #1
    Join Date
    Apr 2008
    Posts
    12
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to Add a Button in QTreeWidget Header?

    Can anyone give me a hint on how to place a button in the header of QTreeWidget as the button shown in the attached image under "Solution Explorer"?

    A minimal example is more than welcome?

    Thanks in advance
    Attached Images Attached Images

  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: How to Add a Button in QTreeWidget Header?

    I guess you can provide your own header widget ??
    QTreeView::setHeader

Similar Threads

  1. Adding a button in the header of a QTreeWidget
    By ioannis in forum Qt Programming
    Replies: 1
    Last Post: 25th September 2008, 18:06
  2. How to add a tool button to a qlistview header
    By kalos80 in forum Qt Programming
    Replies: 2
    Last Post: 31st July 2008, 10:13
  3. button with backgr and icon using stylesheets
    By s_p_t10 in forum Qt Programming
    Replies: 0
    Last Post: 7th May 2008, 20:19
  4. Replies: 0
    Last Post: 10th November 2006, 13:46
  5. Two-row header for QTreeWidget
    By wetzel in forum Qt Programming
    Replies: 1
    Last Post: 27th May 2006, 12:26

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.