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.
  • mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on 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
    2
    • mrjjM mrjj

      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 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?

      mrjjM 1 Reply Last reply
      0
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on 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

          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?

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on 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
          0
          • mrjjM mrjj

            @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 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
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on 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
              • Christian EhrlicherC Offline
                Christian EhrlicherC Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on 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
                0
                • Christian EhrlicherC Christian Ehrlicher

                  @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 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
                  • Hamed.MasafiH Offline
                    Hamed.MasafiH Offline
                    Hamed.Masafi
                    wrote on 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
                    0
                    • Hamed.MasafiH Hamed.Masafi

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

                      E Offline
                      E Offline
                      elfring
                      wrote on 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

                      • Login

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