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. Models composition
QtWS25 Last Chance

Models composition

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 729 Views
  • 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.
  • C Offline
    C Offline
    chabo
    wrote on last edited by
    #1

    Simple example could be model containing several QFileSystemModels with different roots showed in QTreeView . Is there some ready to use implementation for it or I have to implement my own custom model?

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      KConcatenateRowsProxyModel does what you are asking but does not support trees (only tables and lists). Might be a good place to start if you want to implement your own with trees

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      4
      • C Offline
        C Offline
        chabo
        wrote on last edited by
        #3

        Thanks, I will take a look on it.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          chabo
          wrote on last edited by
          #4

          I used this http://lynxline.com/jongling-qt-models-2-composition-gem/

          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