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. SQL driver plugin for querying Qt objects
Forum Updated to NodeBB v4.3 + New Features

SQL driver plugin for querying Qt objects

Scheduled Pinned Locked Moved Unsolved General and Desktop
sqldriver pluginsdatabasesqueriesmeta-objects
11 Posts 5 Posters 2.4k Views 2 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
    mrjj
    Lifetime Qt Champion
    wrote on 15 Sept 2018, 16:57 last edited by mrjj
    #2

    Hi
    I never saw such a thing. not really sure what use case it could apply to ?
    If you are into inspection of the objects, something like
    https://www.kdab.com/development-resources/qt-tools/gammaray/
    is handy.

    E 1 Reply Last reply 15 Sept 2018, 18:33
    2
    • M mrjj
      15 Sept 2018, 16:57

      Hi
      I never saw such a thing. not really sure what use case it could apply to ?
      If you are into inspection of the objects, something like
      https://www.kdab.com/development-resources/qt-tools/gammaray/
      is handy.

      E Offline
      E Offline
      elfring
      wrote on 15 Sept 2018, 18:33 last edited by
      #3

      not really sure what use case it could apply to ?

      I would like to benefit from SQL functionality in several cases. Does it support higher level features than browsing a standard item model?

      M 1 Reply Last reply 15 Sept 2018, 19:29
      0
      • C Online
        C Online
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on 15 Sept 2018, 19:16 last edited by
        #4

        @elfring said in SQL driver plugin for querying Qt objects:

        Does it support higher level features

        What 'higher level features' do mean?

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        2
        • E elfring
          15 Sept 2018, 18:33

          not really sure what use case it could apply to ?

          I would like to benefit from SQL functionality in several cases. Does it support higher level features than browsing a standard item model?

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 15 Sept 2018, 19:29 last edited by
          #5

          @elfring
          hi
          Did you read link ?
          It explain to great detail what tool does.
          Its a debugging tool. Not something you use for user oriented features.

          Can you explain in what cases SQL would be good for tasks related to enumerating
          the the Object tree?
          Normally one can use
          http://doc.qt.io/qt-5/metaobjects.html to inspect objects at runtime.

          E 1 Reply Last reply 15 Sept 2018, 21:05
          0
          • M mrjj
            15 Sept 2018, 19:29

            @elfring
            hi
            Did you read link ?
            It explain to great detail what tool does.
            Its a debugging tool. Not something you use for user oriented features.

            Can you explain in what cases SQL would be good for tasks related to enumerating
            the the Object tree?
            Normally one can use
            http://doc.qt.io/qt-5/metaobjects.html to inspect objects at runtime.

            E Offline
            E Offline
            elfring
            wrote on 15 Sept 2018, 21:05 last edited by
            #6

            Can you explain in what cases SQL would be good for tasks related to enumerating the Object tree?

            I guess to you would benefit from the following standard functionality often enough.

            • Selection
            • Aggregation
            • Ordering

            The usage of the corresponding class “QSqlTableModel” (or a similar variant) could be nice, couldn't it?

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 15 Sept 2018, 21:13 last edited by
              #7

              Hi,

              Do you have a practical example for that ?

              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
              • C Online
                C Online
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on 16 Sept 2018, 11:36 last edited by
                #8

                @elfring said in SQL driver plugin for querying Qt objects:

                QSqlTableModel

                You can pass a QSqlQuery to this model, so you can use your own query to select the data from the database.

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                E 1 Reply Last reply 16 Sept 2018, 11:55
                0
                • C Christian Ehrlicher
                  16 Sept 2018, 11:36

                  @elfring said in SQL driver plugin for querying Qt objects:

                  QSqlTableModel

                  You can pass a QSqlQuery to this model, so you can use your own query to select the data from the database.

                  E Offline
                  E Offline
                  elfring
                  wrote on 16 Sept 2018, 11:55 last edited by
                  #9

                  You can pass a QSqlQuery to this model, …

                  This functionality is clear. Which database would you choose for this purpose?

                  How do you think about to query any Qt objects directly by this programming interface (if you could configure them as the desired “databases” or “tables”)?

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    Hamed.Masafi
                    wrote on 16 Sept 2018, 12:11 last edited by
                    #10

                    Are you looking for an ORM?
                    Take a look at mine:
                    https://github.com/HamedMasafi/Nut

                    Remote object sharing (OO RPC)
                    http://forum.qt.io/topic/60680/remote-object-sharing-oo-rpc-solved

                    Advanced, Powerful and easy to use ORM for Qt5
                    https://forum.qt.io/topic/67417/advanced-powerful-and-easy-to-use-orm-for-qt5

                    E 1 Reply Last reply 17 Sept 2018, 14:27
                    0
                    • H Hamed.Masafi
                      16 Sept 2018, 12:11

                      Are you looking for an ORM?
                      Take a look at mine:
                      https://github.com/HamedMasafi/Nut

                      E Offline
                      E Offline
                      elfring
                      wrote on 17 Sept 2018, 14:27 last edited by
                      #11

                      Are you looking for an ORM?

                      It seems so. - I am used to the technology “object-relational mapping” to some degree.

                      1 Reply Last reply
                      0

                      11/11

                      17 Sept 2018, 14:27

                      • Login

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