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 6 Oct 2018, 15:00 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 6 Oct 2018, 15:32 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 6 Oct 2018, 15:50
      2
      • S SGaist
        6 Oct 2018, 15:32

        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 6 Oct 2018, 15:50 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
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 6 Oct 2018, 15:51 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 6 Oct 2018, 15:53
          0
          • S SGaist
            6 Oct 2018, 15:51

            What do you mean by integrated ?

            E Offline
            E Offline
            elfring
            wrote on 6 Oct 2018, 15:53 last edited by
            #5

            What do you mean by integrated ?

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

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 6 Oct 2018, 21:09 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

              1/6

              6 Oct 2018, 15:00

              • Login

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