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. [SOLVED] Qt SQL Module - Do I have to pay a license for using it ? (commercial use)

[SOLVED] Qt SQL Module - Do I have to pay a license for using it ? (commercial use)

Scheduled Pinned Locked Moved General and Desktop
commerciallicensinglicensesqlmodule
9 Posts 3 Posters 4.1k 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.
  • G Offline
    G Offline
    Gugelhupf
    wrote on 12 Oct 2015, 20:52 last edited by Gugelhupf 10 Dec 2015, 22:11
    #1

    Hi,

    I was looking for a cross platform C++ API for databases. All of them seems to be NOT free. I saw Qt SQL Module, looks like very interesting but I saw this link that tells it's not free if my app is not open source. Then I checked this Qt licensing link, it's BSD.

    1. So is Qt SQL Module free or not for a [closed source / commercial use] ?
    2. How to know if a Qt Module is free or not ?

    NB: The application is intended to run under Windows or Linux, and may connect to RDBMS like PostgreSQL or other.

    Thanks

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on 12 Oct 2015, 21:01 last edited by
      #2

      Hi and welcome to devnet,

      if your application target is desktop platforms (Windows, OS X, Linux) you can user the LGPL version of Qt (so no commercial license needed).

      If you want to use on iOS there some issues and you need to buy a commercial license

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      G 1 Reply Last reply 12 Oct 2015, 21:12
      1
      • M mcosta
        12 Oct 2015, 21:01

        Hi and welcome to devnet,

        if your application target is desktop platforms (Windows, OS X, Linux) you can user the LGPL version of Qt (so no commercial license needed).

        If you want to use on iOS there some issues and you need to buy a commercial license

        G Offline
        G Offline
        Gugelhupf
        wrote on 12 Oct 2015, 21:12 last edited by
        #3

        Thank you for your reply @mcosta,

        Yes my application is intended to run on desktop platforms (Windows or Linux) and I already use Community Edition.

        So does it mean I can freely use classes like QSqlDatabase and QSqlQuery for a [commercial / source closed] application ?

        Thanks,

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mcosta
          wrote on 12 Oct 2015, 21:13 last edited by
          #4

          Hi,

          QtSql is available for opensource version. So you can use it for free (is your application si GPL/LGPL compliant)

          Once your problem is solved don't forget to:

          • Mark the thread as SOLVED using the Topic Tool menu
          • Vote up the answer(s) that helped you to solve the issue

          You can embed images using (http://imgur.com/) or (http://postimage.org/)

          G 1 Reply Last reply 12 Oct 2015, 21:27
          0
          • M mcosta
            12 Oct 2015, 21:13

            Hi,

            QtSql is available for opensource version. So you can use it for free (is your application si GPL/LGPL compliant)

            G Offline
            G Offline
            Gugelhupf
            wrote on 12 Oct 2015, 21:27 last edited by
            #5

            I don't understand what do you mean by "if your application is GPL/LGPL compliant" ?
            This application will only use what Qt has to offer with all its "#include <XXX>".

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 12 Oct 2015, 21:30 last edited by
              #6

              Hi and welcome to devnet,

              What your application uses from a library and its license are two different things. i.e. if you are using libraries that are GPL only, you can't make your application closed source.

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

              G 1 Reply Last reply 12 Oct 2015, 21:59
              1
              • M Offline
                M Offline
                mcosta
                wrote on 12 Oct 2015, 21:31 last edited by
                #7

                Hi,

                in order to user opensource version of Qt you can use GPL or LGPL license.
                If you want to distribute your application, you have to check that the license you'll choose for you application is compatible with the Qt license.

                Ususally if you distribute your application with opensource license (like GPL or LGPL) is not a problem. FOr commercial license you have to care about LGPL expections

                Once your problem is solved don't forget to:

                • Mark the thread as SOLVED using the Topic Tool menu
                • Vote up the answer(s) that helped you to solve the issue

                You can embed images using (http://imgur.com/) or (http://postimage.org/)

                1 Reply Last reply
                0
                • S SGaist
                  12 Oct 2015, 21:30

                  Hi and welcome to devnet,

                  What your application uses from a library and its license are two different things. i.e. if you are using libraries that are GPL only, you can't make your application closed source.

                  G Offline
                  G Offline
                  Gugelhupf
                  wrote on 12 Oct 2015, 21:59 last edited by
                  #8

                  Hi and thank you for your reply @SGaist,

                  Well I am a little bit confused, all I want to do is :
                  Creating a desktop application for Windows/Linux with the Qt Framework (including widgets, core, gui and sql modules in my .pro file), using pure C++ development, for a commercial application (which will be source closed at the beginning).

                  I don't think I will add another library to my project (maybe Boost, but I know this one is permissive license).

                  So am I doing a mistake somewhere ? Thanks

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 12 Oct 2015, 22:00 last edited by
                    #9

                    No you don't, again, just check what the LGPL license requires and conform to it, then you'll be good.

                    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

                    5/9

                    12 Oct 2015, 21:27

                    • Login

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