Results 1 to 6 of 6

Thread: Detailed info in QTreeView Model

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2012
    Posts
    25
    Thanks
    10

    Default Re: Detailed info in QTreeView Model

    My problem rather doesn't need use tree model (but datailed info could be also treated as child) so I think list could be enough. I want to create list of items with few standard informations showed in table (header 1, 2 and 3- all QString), and few additional details showed while item is chose (QStrings and e.g Picture- items could have different number of additional informations it depends on their type represented by header1). List must be sortable by column and must be filtered. I think that's all. At this moment using TreeView I get almost all facilities except includind detail informations.
    I store items informations in txt files in form:
    item1header1_item1header2_item1header3_item1info1_ item1info2_item1info3
    item2header1_item2header2_item2header3_item2info1_ item1info5
    item3header1_item3header2_item3header3_item3info1_ item3info2_item3info3

    and general info about types:
    header1a_header2_header3_info1_info2_info3
    header1b_header2_header3_info1_info5

    I firstly upload second file with headers for every type( this fragment of code isn't included in code which I posted) and in next step file with informations for every item, and depending on header1 I know which attributes should have chosen item. eg when header1a= item1header1 I know that this item should 6 informations about it (header1,header2,header3,info1,info2,info3)

    sample.jpg
    Last edited by Pawello; 20th August 2012 at 16:16.

  2. #2
    Join Date
    May 2012
    Posts
    136
    Thanks
    2
    Thanked 27 Times in 24 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Detailed info in QTreeView Model

    I've made a small example, i did not include the sorting and filtering for that you can take a look at the zipcode1 example from http://www.qtrac.eu/aqpbook.html (aqpbook.zip)
    (the code is not that lean and clean but you will get the idea)

    see the attachment
    List.zip

  3. The following user says thank you to StrikeByte for this useful post:

    Pawello (23rd August 2012)

Similar Threads

  1. Replies: 0
    Last Post: 27th June 2012, 05:46
  2. QTreeView model
    By ComaWhite in forum Qt Programming
    Replies: 3
    Last Post: 5th May 2012, 22:56
  3. detailed explaining qwt example
    By AD in forum Qwt
    Replies: 6
    Last Post: 9th July 2008, 21:13
  4. Replies: 1
    Last Post: 4th July 2008, 17:17
  5. again Open Cascade + Qt 4.2.2 but detailed...
    By Shuchi Agrawal in forum Qt Programming
    Replies: 1
    Last Post: 18th January 2007, 06:50

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.