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. Custom SQL Driver manuals, examples with CMake Qt 6. Where?
Forum Updated to NodeBB v4.3 + New Features

Custom SQL Driver manuals, examples with CMake Qt 6. Where?

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 3 Posters 477 Views 1 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.
  • B Offline
    B Offline
    bogong
    wrote on 28 May 2024, 15:36 last edited by bogong
    #1

    Hello!
    Does any one know any manuals or how-to of how to develop custom SQL Driver for Qt 6 with CMake?
    All examples that found related to Qt 5 and QMake.

    Mostly this question about CMake and what need to be in CMake file.
    Trying to adopt this https://github.com/devbean/QtCipherSqlitePlugin for using it with CMake and Qt 6.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 28 May 2024, 18:40 last edited by
      #2

      Hi,

      I would take inspiration from one of the Qt plugins directly. You will have there the cmake stuff required.

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

      B 1 Reply Last reply 29 May 2024, 06:48
      1
      • S SGaist
        28 May 2024, 18:40

        Hi,

        I would take inspiration from one of the Qt plugins directly. You will have there the cmake stuff required.

        B Offline
        B Offline
        bogong
        wrote on 29 May 2024, 06:48 last edited by bogong
        #3

        @SGaist The question was about MANUALS. Not about plugins itself or any kind of inspiration. Have seen sources already. There are HUGE amount of new CMake functions that is not described in any official docs. If you don't know reply on question why writing it???

        C 1 Reply Last reply 29 May 2024, 07:00
        0
        • B bogong
          29 May 2024, 06:48

          @SGaist The question was about MANUALS. Not about plugins itself or any kind of inspiration. Have seen sources already. There are HUGE amount of new CMake functions that is not described in any official docs. If you don't know reply on question why writing it???

          C Offline
          C Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 29 May 2024, 07:00 last edited by
          #4

          @bogong I don't know why you don't use a simple add_library()...

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

          B 1 Reply Last reply 29 May 2024, 14:16
          0
          • C Christian Ehrlicher
            29 May 2024, 07:00

            @bogong I don't know why you don't use a simple add_library()...

            B Offline
            B Offline
            bogong
            wrote on 29 May 2024, 14:16 last edited by
            #5

            @Christian-Ehrlicher In which context? add_library to what and what library? My primary goal is adopt this plugin for using it with Qt 6 and CMake and publish it for using by anyone. For now this plugin looking abandoned but super useful, trying to keep it alive. Tried to connect to author of this plugin, haven't got any success in it.

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on 29 May 2024, 15:15 last edited by
              #6

              add_library to what and what library?

              You want to create a library (aka a Qt sql plugin) - or did I misread something?

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

              B 1 Reply Last reply 30 May 2024, 06:54
              0
              • C Christian Ehrlicher
                29 May 2024, 15:15

                add_library to what and what library?

                You want to create a library (aka a Qt sql plugin) - or did I misread something?

                B Offline
                B Offline
                bogong
                wrote on 30 May 2024, 06:54 last edited by
                #7

                @Christian-Ehrlicher Want to create total copy of this plugin, within only one difference - adopt it for Qt 6 and above with CMake. For now it's not working with last versions of Qt 6.

                C 1 Reply Last reply 30 May 2024, 07:12
                0
                • B bogong
                  30 May 2024, 06:54

                  @Christian-Ehrlicher Want to create total copy of this plugin, within only one difference - adopt it for Qt 6 and above with CMake. For now it's not working with last versions of Qt 6.

                  C Offline
                  C Offline
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on 30 May 2024, 07:12 last edited by
                  #8

                  And where is the problem? I already told you more than once that you can create a library with add_library()

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

                  B 1 Reply Last reply 30 May 2024, 19:42
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 30 May 2024, 18:21 last edited by
                    #9

                    While not officially supported for external projects, check the pro to cmake porting guide.

                    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
                    0
                    • C Christian Ehrlicher
                      30 May 2024, 07:12

                      And where is the problem? I already told you more than once that you can create a library with add_library()

                      B Offline
                      B Offline
                      bogong
                      wrote on 30 May 2024, 19:42 last edited by bogong
                      #10

                      @Christian-Ehrlicher From my point of view based on official documentation "building library" and "building plugin" two different ways, even code base different. There are even different examples for Qt. What do you mean under the term "library"? And have you any link on manuals on how to build plugins with CMake for Qt 6? And which library need to be added if there need to build it first???

                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        Christian Ehrlicher
                        Lifetime Qt Champion
                        wrote on 31 May 2024, 04:20 last edited by
                        #11

                        Please read the documentation on add_library() - don't know what's the problem. Or use the qt specific way qt_add_plugin() to make sure the json file is properly integrated without manual steps. See also https://doc.qt.io/qt-6/plugins-howto.html

                        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
                        0

                        3/11

                        29 May 2024, 06:48

                        8 unread
                        • Login

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