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. Using qt for a commercial application on windows (LGPL)
Forum Update on Monday, May 27th 2025

Using qt for a commercial application on windows (LGPL)

Scheduled Pinned Locked Moved Unsolved General and Desktop
76 Posts 12 Posters 5.9k 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.
  • S SimonSchroeder

    @Jo-Jo said in Using qt for a commercial application on windows (LGPL):

    inform the user that the program uses LGPL modules and about the rights of this user (that he can request the source code of LGPL modules, provide his LGPL modules instead of mine, instructions on how to replace LGPL modules with custom ones)

    I am not sure what the Qt site mentions explicitly about this. However, there have been several discussions about this in this forum already. IIRC there a two options (slightly different from what you have phrased it) for distributing the source of Qt: 1) You provide a written offer to provide the source code of Qt valid for at least three months (quite close to how you said it, but it includes a written offer). 2) You distribute the source code alongside/in the same way as your own app. If you distribute your app through a CD-ROM (probably not, but trying to make a point here), the same CD-ROM should also contain the source code of Qt. If people can download your app through the internet, you need to provide a download for the source of Qt as well; it is not sufficient to link to some one elses (or the official) repository. It needs to be under your control. [1]

    In any case: You need to have a copy of the Qt source code yourself so that you can give it to someone else. It is very unlikely, but theoretically Qt could vanish from the internet one day.

    [1] There was recently a library under the MIT license (don't remember the name) where the original creator force pushed an empty repository to all forks of the library and deleted the original repository. He needed to make money from his library and actually this is not against the MIT license. (It is also not against the MIT license for someone who has a local copy of the repository to still create a new public repository with the full history.)

    Pl45m4P Offline
    Pl45m4P Offline
    Pl45m4
    wrote on last edited by
    #9

    @SimonSchroeder said in Using qt for a commercial application on windows (LGPL):

    It is very unlikely, but theoretically Qt could vanish from the internet one day.

    Just a thought:
    If TQtC "vanishes" from the Internet probably meaning they stopped all services and selling/distributing their products, there is no one left to blame you for any future license/code violations?!
    No TQtC, no license, right?!


    If debugging is the process of removing software bugs, then programming must be the process of putting them in.

    ~E. W. Dijkstra

    jsulmJ 1 Reply Last reply
    0
    • Pl45m4P Pl45m4

      @SimonSchroeder said in Using qt for a commercial application on windows (LGPL):

      It is very unlikely, but theoretically Qt could vanish from the internet one day.

      Just a thought:
      If TQtC "vanishes" from the Internet probably meaning they stopped all services and selling/distributing their products, there is no one left to blame you for any future license/code violations?!
      No TQtC, no license, right?!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #10

      @Pl45m4 said in Using qt for a commercial application on windows (LGPL):

      No TQtC, no license, right?!

      Wrong. Anybody can sue you if you violate an OSS license. As far as I know FSF did this in the past for example.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      Pl45m4P 1 Reply Last reply
      2
      • S SimonSchroeder

        @Jo-Jo said in Using qt for a commercial application on windows (LGPL):

        inform the user that the program uses LGPL modules and about the rights of this user (that he can request the source code of LGPL modules, provide his LGPL modules instead of mine, instructions on how to replace LGPL modules with custom ones)

        I am not sure what the Qt site mentions explicitly about this. However, there have been several discussions about this in this forum already. IIRC there a two options (slightly different from what you have phrased it) for distributing the source of Qt: 1) You provide a written offer to provide the source code of Qt valid for at least three months (quite close to how you said it, but it includes a written offer). 2) You distribute the source code alongside/in the same way as your own app. If you distribute your app through a CD-ROM (probably not, but trying to make a point here), the same CD-ROM should also contain the source code of Qt. If people can download your app through the internet, you need to provide a download for the source of Qt as well; it is not sufficient to link to some one elses (or the official) repository. It needs to be under your control. [1]

        In any case: You need to have a copy of the Qt source code yourself so that you can give it to someone else. It is very unlikely, but theoretically Qt could vanish from the internet one day.

        [1] There was recently a library under the MIT license (don't remember the name) where the original creator force pushed an empty repository to all forks of the library and deleted the original repository. He needed to make money from his library and actually this is not against the MIT license. (It is also not against the MIT license for someone who has a local copy of the repository to still create a new public repository with the full history.)

        J Offline
        J Offline
        Jo Jo
        wrote on last edited by Jo Jo
        #11

        @SimonSchroeder said in Using qt for a commercial application on windows (LGPL):

        You distribute the source code alongside/in the same way as your own app. If you distribute your app through a CD-ROM (probably not, but trying to make a point here), the same CD-ROM should also contain the source code of Qt. If people can download your app through the internet, you need to provide a download for the source of Qt as well; it is not sufficient to link to some one elses (or the official) repository. It needs to be under your control

        Official link says :

        Complete corresponding source code of the library used with the application or the device built using LGPL, including all modifications to the library, should be delivered with the application (or alternatively provide a written offer with instructions on how to get the source code)
        https://www.qt.io/licensing/open-source-lgpl-obligations

        The most interesting part is "or alternatively provide a written offer with instructions on how to get the source code".
        It didn't say that I should provide a link to download the Qt sources. It said that I should provide written instructions on how to get the Qt sources. This instruction could be sending a person to Mars to get the Qt sources, right? :) Or just send a written request by email to get the archive with the source code by email or stuff like this. Or am I wrong?

        @KH-219Design Thank you!

        S 1 Reply Last reply
        0
        • jsulmJ jsulm

          @Pl45m4 said in Using qt for a commercial application on windows (LGPL):

          No TQtC, no license, right?!

          Wrong. Anybody can sue you if you violate an OSS license. As far as I know FSF did this in the past for example.

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on last edited by Pl45m4
          #12

          @jsulm said in Using qt for a commercial application on windows (LGPL):

          Wrong. Anybody can sue you if you violate an OSS license.

          Probably, but I meant, if there is no Qt Company anymore... all its licenses are void?!
          Because TQtC is the license "holder"?!
          Am I wrong?
          Or will it continue through the OpenSource / (L)GPL "community"?

          @Jo-Jo said in Using qt for a commercial application on windows (LGPL):

          This instruction could be sending a person to Mars to get the Qt sources, right? :)

          I think they had more reasonable ways in mind :D
          But interesting take...
          Peter Jackson will produce a trilogy on this starting with "An unexpected journey" ;-)


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          SGaistS I 2 Replies Last reply
          0
          • Pl45m4P Pl45m4

            @jsulm said in Using qt for a commercial application on windows (LGPL):

            Wrong. Anybody can sue you if you violate an OSS license.

            Probably, but I meant, if there is no Qt Company anymore... all its licenses are void?!
            Because TQtC is the license "holder"?!
            Am I wrong?
            Or will it continue through the OpenSource / (L)GPL "community"?

            @Jo-Jo said in Using qt for a commercial application on windows (LGPL):

            This instruction could be sending a person to Mars to get the Qt sources, right? :)

            I think they had more reasonable ways in mind :D
            But interesting take...
            Peter Jackson will produce a trilogy on this starting with "An unexpected journey" ;-)

            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by SGaist
            #13

            WARNING: I am NOT a lawyer

            @Pl45m4 The Qt Company is the main copyright holder (but not for everything, some files have shared copyrights and some have copyright from other parties).
            Then there's the CLA that is signed by every contributor (note that the CLA does not require that you transfer copyright of your work to the Qt Company) and finally there's the licenses under which the code is made available.

            So technically, no, the licenses are not void. For example, you can't claim new licenses for a library (or other software) that has been made available by a now deceased developer.

            One final thing is the KDE Free Qt Foundation which protects availability of Qt as Open Source software.

            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
            3
            • Pl45m4P Pl45m4

              @jsulm said in Using qt for a commercial application on windows (LGPL):

              Wrong. Anybody can sue you if you violate an OSS license.

              Probably, but I meant, if there is no Qt Company anymore... all its licenses are void?!
              Because TQtC is the license "holder"?!
              Am I wrong?
              Or will it continue through the OpenSource / (L)GPL "community"?

              @Jo-Jo said in Using qt for a commercial application on windows (LGPL):

              This instruction could be sending a person to Mars to get the Qt sources, right? :)

              I think they had more reasonable ways in mind :D
              But interesting take...
              Peter Jackson will produce a trilogy on this starting with "An unexpected journey" ;-)

              I Offline
              I Offline
              IgKh
              wrote on last edited by
              #14

              @Pl45m4 said in Using qt for a commercial application on windows (LGPL):

              Probably, but I meant, if there is no Qt Company anymore... all its licenses are void?!

              IANAL of course!

              To my understanding, software licensing is based on copyright law. The law controls if and when a copyright expires and the protected work becomes a free-for-all. For example in the United States it is life + 70 years, so for a painting the painter's estate / inheritors would keep holding the copyright for additional 70 years after death of the original author.

              I'm not sure how that exactly works when the copyright holder is a corporate entity, but I suppose that if the Qt Company goes bankrupt the copyright for the parts of the Qt source code that it held will be sold off to someone by the liquidator as part of the company's intellectual property. At any rate the LGPL license is non-revocable, so anyone who got it can keep using it under the same terms even if there is a new owner.

              1 Reply Last reply
              1
              • J Jo Jo

                @SimonSchroeder said in Using qt for a commercial application on windows (LGPL):

                You distribute the source code alongside/in the same way as your own app. If you distribute your app through a CD-ROM (probably not, but trying to make a point here), the same CD-ROM should also contain the source code of Qt. If people can download your app through the internet, you need to provide a download for the source of Qt as well; it is not sufficient to link to some one elses (or the official) repository. It needs to be under your control

                Official link says :

                Complete corresponding source code of the library used with the application or the device built using LGPL, including all modifications to the library, should be delivered with the application (or alternatively provide a written offer with instructions on how to get the source code)
                https://www.qt.io/licensing/open-source-lgpl-obligations

                The most interesting part is "or alternatively provide a written offer with instructions on how to get the source code".
                It didn't say that I should provide a link to download the Qt sources. It said that I should provide written instructions on how to get the Qt sources. This instruction could be sending a person to Mars to get the Qt sources, right? :) Or just send a written request by email to get the archive with the source code by email or stuff like this. Or am I wrong?

                @KH-219Design Thank you!

                S Offline
                S Offline
                SimonSchroeder
                wrote on last edited by SimonSchroeder
                #15

                @Jo-Jo said in Using qt for a commercial application on windows (LGPL):

                The most interesting part is "or alternatively provide a written offer with instructions on how to get the source code".

                Legally, it doesn't really matter how Qt tries to explain the LGPL. Finally, the source is put under the LGPL and that is the legal document that grants you certain rights. The LGPLv3 refers for a few things to the GPLv3 (https://www.gnu.org/licenses/gpl-3.0.html). Under section 6 there are 5 options how to distribute the source. Here are the three that I tried to refer to:

                a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.

                b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, [...]

                d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.

                Especially the last sentence means you cannot rely on Qt hosting the source code on GitHub. You neither can ensure that Qt keeps their repository there nor can you ensure that GitHub keeps existing.

                J 1 Reply Last reply
                4
                • S SimonSchroeder

                  @Jo-Jo said in Using qt for a commercial application on windows (LGPL):

                  The most interesting part is "or alternatively provide a written offer with instructions on how to get the source code".

                  Legally, it doesn't really matter how Qt tries to explain the LGPL. Finally, the source is put under the LGPL and that is the legal document that grants you certain rights. The LGPLv3 refers for a few things to the GPLv3 (https://www.gnu.org/licenses/gpl-3.0.html). Under section 6 there are 5 options how to distribute the source. Here are the three that I tried to refer to:

                  a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.

                  b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, [...]

                  d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.

                  Especially the last sentence means you cannot rely on Qt hosting the source code on GitHub. You neither can ensure that Qt keeps their repository there nor can you ensure that GitHub keeps existing.

                  J Offline
                  J Offline
                  Jo Jo
                  wrote on last edited by
                  #16

                  @SimonSchroeder said in Using qt for a commercial application on windows (LGPL):

                  Especially the last sentence means you cannot rely on Qt hosting the source code on GitHub. You neither can ensure that Qt keeps their repository there nor can you ensure that GitHub keeps existing.

                  Do I understand correctly that it is enough to provide a link to download the Qt source code, for example, to the GitHub repository?

                  jsulmJ 1 Reply Last reply
                  0
                  • J Jo Jo

                    @SimonSchroeder said in Using qt for a commercial application on windows (LGPL):

                    Especially the last sentence means you cannot rely on Qt hosting the source code on GitHub. You neither can ensure that Qt keeps their repository there nor can you ensure that GitHub keeps existing.

                    Do I understand correctly that it is enough to provide a link to download the Qt source code, for example, to the GitHub repository?

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #17

                    @Jo-Jo said in Using qt for a commercial application on windows (LGPL):

                    Do I understand correctly that it is enough to provide a link to download the Qt source code, for example, to the GitHub repository?

                    No, it means the opposite, because you cannot be sure that GitHub will be there al long as you distribute your software. That's why you should have the source code of the Qt version you're using and provide it on request.

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    J 1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @Jo-Jo said in Using qt for a commercial application on windows (LGPL):

                      Do I understand correctly that it is enough to provide a link to download the Qt source code, for example, to the GitHub repository?

                      No, it means the opposite, because you cannot be sure that GitHub will be there al long as you distribute your software. That's why you should have the source code of the Qt version you're using and provide it on request.

                      J Offline
                      J Offline
                      Jo Jo
                      wrote on last edited by
                      #18

                      @jsulm said in Using qt for a commercial application on windows (LGPL):

                      No, it means the opposite, because you cannot be sure that GitHub will be there al long as you distribute your software. That's why you should have the source code of the Qt version you're using and provide it on request.

                      Should it be a web hosting under my control? Even then, the hosting may stop working. Any Internet resource may eventually close down.

                      jsulmJ 1 Reply Last reply
                      0
                      • J Jo Jo

                        @jsulm said in Using qt for a commercial application on windows (LGPL):

                        No, it means the opposite, because you cannot be sure that GitHub will be there al long as you distribute your software. That's why you should have the source code of the Qt version you're using and provide it on request.

                        Should it be a web hosting under my control? Even then, the hosting may stop working. Any Internet resource may eventually close down.

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #19

                        @Jo-Jo It doesn't matter how you store the source code. What is required is that you can provide Qt source code to whoever asks for it. It does not have to be an URL, it can also be an USB stick or what ever.

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        J 1 Reply Last reply
                        1
                        • jsulmJ jsulm

                          @Jo-Jo It doesn't matter how you store the source code. What is required is that you can provide Qt source code to whoever asks for it. It does not have to be an URL, it can also be an USB stick or what ever.

                          J Offline
                          J Offline
                          Jo Jo
                          wrote on last edited by Jo Jo
                          #20

                          @jsulm Do you mean to provide the Qt source code on demand? But am I not obliged to provide access to the Qt source code even without user requests?

                          jsulmJ 1 Reply Last reply
                          0
                          • J Jo Jo

                            @jsulm Do you mean to provide the Qt source code on demand? But am I not obliged to provide access to the Qt source code even without user requests?

                            jsulmJ Offline
                            jsulmJ Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on last edited by
                            #21

                            @Jo-Jo said in Using qt for a commercial application on windows (LGPL):

                            But am I not obliged to provide access to the Qt source code even without user requests?

                            You are as far as I know, read again what @SimonSchroeder wrote

                            https://forum.qt.io/topic/113070/qt-code-of-conduct

                            J 1 Reply Last reply
                            0
                            • jsulmJ jsulm

                              @Jo-Jo said in Using qt for a commercial application on windows (LGPL):

                              But am I not obliged to provide access to the Qt source code even without user requests?

                              You are as far as I know, read again what @SimonSchroeder wrote

                              J Offline
                              J Offline
                              Jo Jo
                              wrote on last edited by
                              #22

                              @jsulm I have read it. As far as I understand, I am obliged to provide a download link plus a guarantee that if the link stops working, I will be able to transfer the Qt sources in an alternative way. To do this, I must store the Qt sources somewhere on my own. Right?

                              jsulmJ 1 Reply Last reply
                              0
                              • J Jo Jo

                                @jsulm I have read it. As far as I understand, I am obliged to provide a download link plus a guarantee that if the link stops working, I will be able to transfer the Qt sources in an alternative way. To do this, I must store the Qt sources somewhere on my own. Right?

                                jsulmJ Offline
                                jsulmJ Offline
                                jsulm
                                Lifetime Qt Champion
                                wrote on last edited by
                                #23

                                @Jo-Jo said in Using qt for a commercial application on windows (LGPL):

                                To do this, I must store the Qt sources somewhere on my own.

                                Yes, that's what I wrote

                                https://forum.qt.io/topic/113070/qt-code-of-conduct

                                J 1 Reply Last reply
                                1
                                • jsulmJ jsulm

                                  @Jo-Jo said in Using qt for a commercial application on windows (LGPL):

                                  To do this, I must store the Qt sources somewhere on my own.

                                  Yes, that's what I wrote

                                  J Offline
                                  J Offline
                                  Jo Jo
                                  wrote on last edited by
                                  #24

                                  @jsulm Thank you!

                                  1 Reply Last reply
                                  0
                                  • J Offline
                                    J Offline
                                    Jo Jo
                                    wrote on last edited by
                                    #25

                                    Sorry, do I need to additionally provide the text of the LGPL license in software or on the some web page?

                                    1 Reply Last reply
                                    0
                                    • SGaistS Offline
                                      SGaistS Offline
                                      SGaist
                                      Lifetime Qt Champion
                                      wrote on last edited by SGaist
                                      #26

                                      Yes, with the software. Also QMainWindow QApplication has an aboutQt method that shows this information.

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

                                      J 1 Reply Last reply
                                      2
                                      • SGaistS SGaist

                                        Yes, with the software. Also QMainWindow QApplication has an aboutQt method that shows this information.

                                        J Offline
                                        J Offline
                                        Jo Jo
                                        wrote on last edited by Jo Jo
                                        #27

                                        @SGaist
                                        I can't find the QMainWindow::aboutQt method in the documentation. Can you provide a link? I found QApplication::aboutQt but it gives us general information about Qt licensing (not specific to LGPL)

                                        One more question: can anyone provide me with a link to a commercial Windows application that uses Qt under the LGPL license? I need such a program as an example

                                        SGaistS Z 2 Replies Last reply
                                        0
                                        • J Jo Jo

                                          @SGaist
                                          I can't find the QMainWindow::aboutQt method in the documentation. Can you provide a link? I found QApplication::aboutQt but it gives us general information about Qt licensing (not specific to LGPL)

                                          One more question: can anyone provide me with a link to a commercial Windows application that uses Qt under the LGPL license? I need such a program as an example

                                          SGaistS Offline
                                          SGaistS Offline
                                          SGaist
                                          Lifetime Qt Champion
                                          wrote on last edited by
                                          #28

                                          @Jo-Jo My bad it was QApplication::aboutQt

                                          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

                                          • Login

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