Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Flatten a hierarchical tree model
Forum Updated to NodeBB v4.3 + New Features

Flatten a hierarchical tree model

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 2.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • sajis997S Offline
    sajis997S Offline
    sajis997
    wrote on last edited by
    #1

    Hello forum,

    I have created a tree hierarchy by subclassing the QAbstractItemModel and assigned the model to the tree view. I also have a line edit above in the layout widget which needs the QCompleter support. Instead of the completion one level at a time i would like to give the line completion support for all the tree item data that matches the entered string. In that case i need to create a proxy model and flatten the original tree there, i believe.

    Any idea how to browse through the original tree and flatten it out ?

    Any hint, example application or reference would be very helpful. I have check the official manual and it did not cover much on this issue.

    Regards
    Sajjad

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved