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. Qt Model/tree view as a wrapper tree display for under-lying tree data-structure
Forum Updated to NodeBB v4.3 + New Features

Qt Model/tree view as a wrapper tree display for under-lying tree data-structure

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.7k 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.
  • M Offline
    M Offline
    Muraaley
    wrote on last edited by
    #1

    Hello,
    I've my own tree data-structure which i want to display using Qt model/tree view framework. The underlying tree structure will changing frequently (like insertion and deletion of children) through its own other interfaces. Do I have to take some extra measures to make sure that the underlying data structure is displayed properly without any breaks?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MuhamedAuda
      wrote on last edited by
      #2

      do u think in implementing ur own Model?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Muraaley
        wrote on last edited by
        #3

        I've my own tree data structure which is not a model. Now i've another class cMyModel subclassing QAbstractItemModel. This cMyModel acts as a wrapper of my tree data structure. My tree data structure has its own interfaces/methods through which the tree structure will be changing frequently. Hope you understand my case. My question remains the same

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          Yes, you do have to take some measures. One important one is that you need to signal changes in the data store before they happen, as well as when they are done. Otherwise, you'll have problems implementing the model properly.

          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