Results 1 to 7 of 7

Thread: Two Trees in one View

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2006
    Posts
    77
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    14
    Thanked 3 Times in 3 Posts

    Default Re: Two Trees in one View

    Thank you for your answer.I also thought about that but the problem is that i need to have joust one view.

  2. #2
    Join Date
    Jan 2008
    Location
    Warsaw
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Two Trees in one View

    Maybe you could try making your own model which will be mapping data from second treeview to indices begining from third column. I guess it'll solve scrolling and expanding problem.
    Last edited by zatoichi; 26th January 2009 at 22:20.

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

    Default Re: Two Trees in one View

    Quote Originally Posted by kemp View Post
    Thank you for your answer.I also thought about that but the problem is that i need to have joust one view.
    QTreeView doesn't support two independent sets of columns and two independent sets of rows which is what you want. So either you will use two trees and make them look like one (which is possible) or you'll have to implement your own view based on QAbstractItemView.

  4. #4
    Join Date
    Aug 2006
    Posts
    77
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    14
    Thanked 3 Times in 3 Posts

    Default Re: Two Trees in one View

    Thank you for your answer. I will try.

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

    Default Re: Two Trees in one View

    Quote Originally Posted by kemp View Post
    the problem is that i need to have joust one view.
    Just curious, where does such requirement come from?
    J-P Nurmi

Similar Threads

  1. Graphics View Panning ,zooming
    By linuxdev in forum Qt Programming
    Replies: 3
    Last Post: 29th December 2008, 07:17
  2. World View Zooming factor
    By Pharell in forum General Programming
    Replies: 0
    Last Post: 6th November 2008, 13:04
  3. View, Scene, Item and thread??
    By dungsivn in forum Qt Programming
    Replies: 5
    Last Post: 20th August 2008, 19:21
  4. Model, View and Proxy
    By No-Nonsense in forum Qt Programming
    Replies: 2
    Last Post: 21st November 2006, 08:50
  5. Model - View Programming doubt.
    By munna in forum Qt Programming
    Replies: 4
    Last Post: 28th April 2006, 13:01

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.