Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

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

    General and Desktop
    3
    4
    1522
    Loading More Posts
    • 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
      Muraaley last edited by

      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 Reply Quote 0
      • M
        MuhamedAuda last edited by

        do u think in implementing ur own Model?

        1 Reply Last reply Reply Quote 0
        • M
          Muraaley last edited by

          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 Reply Quote 0
          • A
            andre last edited by

            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 Reply Quote 0
            • First post
              Last post