Results 1 to 2 of 2

Thread: QTreeView: Holding a line on screen

  1. #1
    Join Date
    Jan 2007
    Location
    Augsburg, Germany
    Posts
    75
    Thanks
    4
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Lightbulb QTreeView: Holding a line on screen

    Hello there,

    I'm in need of a QTreeView which always shows the first line on the screen even if the user scrolls. This is needed to compare search results where the first line shows the searched item.

    So my thoughts were:
    • Own QHeaderView derivate which contains a real QHeaderView and a QTreeView.
    • Two QTreeView where to top one has a QHeaderView and the bottom one none. Column sizings of the top one also have to be sent to the bottom one. (how?)
    • Subclassing QTreeView to do that where I have no idea how to do this.


    Does anyone else have ideas for that?

    Thanks,
    gri

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QTreeView: Holding a line on screen

    Quote Originally Posted by gri View Post
    • Two QTreeView where to top one has a QHeaderView and the bottom one none. Column sizings of the top one also have to be sent to the bottom one. (how?)
    This one sounds easiest to me. Resizing and moving of sections should be only a matter of connecting a few QHeaderView signals and slots.
    J-P Nurmi

Similar Threads

  1. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  2. QTableView paints too much
    By Jimmy2775 in forum Qt Programming
    Replies: 2
    Last Post: 26th July 2006, 18:42

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.