Hello. Tell me how to use QSqlQueryModel and QTreeView do something like this?:
tree.jpg
Depending on the value of field2 to set the level of the nesting tree. That is, as shown in the picture. Record with id = 3 must be embedded into the record with id = 2, because the value of field2 = 2. and so on.
Bookmarks