Results 1 to 4 of 4

Thread: QTreeView branches draw problem

  1. #1
    Join Date
    Mar 2010
    Location
    Berlin
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows

    Default QTreeView branches draw problem

    Hello,

    I use a standard TreeView (not subclassed) with a subclassed AbstractItemModel. All works well except the standard drawing of branches, which is broken for top level items (see image). The dotted line connecting top level items does not draw for the first item, but for the second (which is also the last top level item in the tree). For the second I would expect the branch to be not drawn at all.
    Does somebody know what the problem is? Just tell me what additional info I can provide, I just dont know where to start.

    badbranches.jpg



    Cheers

    Sebastian

  2. #2
    Join Date
    Sep 2011
    Location
    Portugal
    Posts
    25
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: QTreeView branches draw problem


  3. #3
    Join Date
    Mar 2010
    Location
    Berlin
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTreeView branches draw problem

    No, I just checked. Thank you anyway.

  4. #4
    Join Date
    Sep 2011
    Location
    Portugal
    Posts
    25
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: QTreeView branches draw problem

    It would help if you show us the code.

Similar Threads

  1. Draw branches in QHeaderView subclass
    By Nightfox in forum Qt Programming
    Replies: 0
    Last Post: 22nd May 2012, 14:55
  2. Model/QTreeview sometimes doesn't draw
    By winkle98 in forum Qt Programming
    Replies: 2
    Last Post: 22nd November 2011, 21:57
  3. QTreeView draw drop indicator
    By mentalmushroom in forum Qt Programming
    Replies: 0
    Last Post: 28th September 2011, 10:05
  4. Always show QTreeview branches in the far left column
    By Nightfox in forum Qt Programming
    Replies: 15
    Last Post: 10th September 2010, 01:15
  5. Replies: 1
    Last Post: 12th November 2006, 17:56

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.