Treemodel transformation



  • Hello,

    I'm having huge difficulties getting the following to work:
    I have a QAIM subclass that takes a variable amount of QSqlQueryModel and models them into a tree (every QSqlQueryModel is simply a new tree level).
    I'm now having a tree like this (not exactly this, but just to give you an idea):
    Job data

    • Person data
      -- More specific person data
      everything from separate SQL tables.

    What I want to achieve is that data from some specified columns of the different level will be displayed as a child node in a new single row, so that you e.g. just see the person name as a sub note of the job and not all the information in several columns.

    I've started to subclass a QSortFilterProxyModel (since the final tree should be filter-/searchable), but am really stuck as to how to achieve this. The columnCount and rowCount functions are already implemented. But I don't see what exactly the other functions shall do / which of them I'll need to implement.

    If anyone has any input or examples / open source projects with comparable functionality I would really appreciate it.

    Thanks and kind regards,
    Robert


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.