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. Extending data models with fields
QtWS25 Last Chance

Extending data models with fields

Scheduled Pinned Locked Moved Unsolved General and Desktop
proxydata modelsfieldsclassessoftware design
6 Posts 2 Posters 1.2k 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.
  • E Offline
    E Offline
    elfring
    wrote on last edited by
    #1

    Proxy models are described to some degree.
    How often is a need there to extend a source data model (like a base class) with fields?

    • Additional attributes
    • Computed values

    Would you like to point further information sources out for this software design approach?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You should check KDE's KItemModels which provide some nice addition to what Qt has. From which, KExtraColumnsProxyModel which provides the base for what you are looking for.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      E 1 Reply Last reply
      2
      • SGaistS SGaist

        Hi,

        You should check KDE's KItemModels which provide some nice addition to what Qt has. From which, KExtraColumnsProxyModel which provides the base for what you are looking for.

        E Offline
        E Offline
        elfring
        wrote on last edited by
        #3

        You should check KDE's KItemModels which provide some nice addition to what Qt has.

        Thanks for your hint.

        Can any similar classes be integrated into the Qt software library?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          What do you mean by integrated ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          E 1 Reply Last reply
          0
          • SGaistS SGaist

            What do you mean by integrated ?

            E Offline
            E Offline
            elfring
            wrote on last edited by
            #5

            What do you mean by integrated ?

            Will the collection of (proxy) data models grow anyhow?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              That I don't know.

              If you have an interesting re-usable model to share then you can do a submission.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1

              • Login

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