Results 1 to 2 of 2

Thread: Displaying QAbstractItemModel in a Table

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #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: Displaying QAbstractItemModel in a Table

    Quote Originally Posted by aqualoom View Post
    Is there a way to do this except for writing a completly new view class? Perhaps subclassing QTreeView or QTableView in a smart way?
    Try implementing a proxy model. There's an example of a Transpose Proxy Model in our wiki. It doesn't do at all what you want but gives you a simple idea how proxy models are implemented. What you should do is to map the children as top level indices.
    J-P Nurmi

  2. The following user says thank you to jpn for this useful post:


Similar Threads

  1. Delegates and Table
    By ankurjain in forum Qt Programming
    Replies: 8
    Last Post: 18th May 2006, 19:47
  2. displaying any table on a qdatatable
    By Philip_Anselmo in forum Newbie
    Replies: 4
    Last Post: 9th May 2006, 22:12
  3. creating table plugin
    By mgurbuz in forum Qt Programming
    Replies: 3
    Last Post: 28th April 2006, 13:50
  4. Adding row in a Table after selected row
    By ankurjain in forum Qt Programming
    Replies: 3
    Last Post: 20th April 2006, 18:06
  5. Table model / view editing issue
    By Caius Aérobus in forum Qt Programming
    Replies: 9
    Last Post: 7th April 2006, 11:03

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.