Results 1 to 9 of 9

Thread: Hierarchical Table/Listview

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Hierarchical Table/Listview

    Quote Originally Posted by cia.michele View Post
    Mmm peraphs it could be a solution, but, the treeview give the same columns for parent and child items isn'it?
    Yes, so?

    Or I can change?
    No.

    Otherwise, is it possible create a Listview (or table view) as treeviewItem?
    Not really.
    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.


  2. #2
    Join Date
    Oct 2009
    Posts
    65
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Hierarchical Table/Listview

    [QUOTE=wysota;124934]Yes, so?
    So I need obtain the view in herarchical_table.png, with de slave item grouped in an inner table with different columns.

    How can obtain this?

    Thanks for your help

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

    Default Re: Hierarchical Table/Listview

    The same way you would do this with SQL. The most obvious way is to make a join of both tables. You can also set two headers for the table - one for each table.
    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.


  4. #4
    Join Date
    Oct 2009
    Posts
    65
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Hierarchical Table/Listview

    Ok I know how make a join between the two tables, and I can learn how to set-up the QSqlRelationalModel (it is the most correct in this case isn't it?), but, who i set two headers to the same table? and then, I could select the row from both of different level? Could you show me a small examples?

    Thanks for your time.

    Michele

Similar Threads

  1. hierarchical model in a flat view
    By gniking in forum Qt Programming
    Replies: 4
    Last Post: 10th November 2009, 20:17
  2. Saving hierarchical structures of data.
    By psih128 in forum Qt Programming
    Replies: 1
    Last Post: 30th July 2009, 08:33

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.