Results 1 to 3 of 3

Thread: paint QTreeView item !!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2006
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X

    Default paint QTreeView item !!

    I create a QTreeView and I set my custom model and my custom delegate. In my delegate I redefine the paint method to paint the items of the QTreeView like I want. The issue is that the branches are not paint (I have attached a picture of the QTreeView).
    So how can I do to paint the item and the branch using my delegate ? I'd like to avoid to subclass QTreeView and redefine the drawBranches method ....
    Thanks for your help!
    Attached Images Attached Images

Similar Threads

  1. QTreeView and item editing
    By roxton in forum Qt Programming
    Replies: 3
    Last Post: 25th July 2008, 18:56
  2. QTreeView, QSortFilterProxyModel and item expansions
    By benacler in forum Qt Programming
    Replies: 3
    Last Post: 21st May 2008, 20:30
  3. Item Delegate Painting
    By stevey in forum Qt Programming
    Replies: 3
    Last Post: 9th May 2008, 07:37
  4. QTreeView: selection behavior upon selected item removal
    By Pieter from Belgium in forum Qt Programming
    Replies: 6
    Last Post: 11th July 2007, 16:00
  5. Programattically Clicking an Item in QTreeView
    By johnny_sparx in forum Qt Programming
    Replies: 4
    Last Post: 11th May 2006, 16: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.