Results 1 to 2 of 2

Thread: How to increase a margin between last tree item and QTreeView bottom baundary

  1. #1
    Join Date
    Feb 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to increase a margin between last tree item and QTreeView bottom baundary

    Hi,

    I'm using a subclass of QTreeView and would like to increase a margin between the last item ( bottom item ) in the tree and the bottom boundary of the QTreeView itself. Please see attached picture for more detail.

    Is there any way to achieve this?
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to increase a margin between last tree item and QTreeView bottom baundary

    It should be possible by adjusting the range of vertical scrollbar and optionally reimplementing visualRect if you need this behaviour for every last item in each branch. You can also try to toy a bit with the delegate but this will probably ruin your tree branch indicator.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Qt needs a sub item tree iterator
    By mrknight in forum Qt Programming
    Replies: 1
    Last Post: 3rd November 2010, 03:18
  2. QTreeView: include root in tree?
    By meter in forum Newbie
    Replies: 2
    Last Post: 14th June 2010, 12:59
  3. How to increase size of the header lable in QTreeView
    By grsandeep85 in forum Qt Programming
    Replies: 1
    Last Post: 21st October 2009, 09:59
  4. Replies: 7
    Last Post: 15th November 2007, 17:19
  5. Replies: 14
    Last Post: 9th November 2006, 08:35

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.