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. Switch from LGPL to GPL
Forum Update on Monday, May 27th 2025

Switch from LGPL to GPL

Scheduled Pinned Locked Moved Solved General and Desktop
11 Posts 3 Posters 1.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.
  • X Offline
    X Offline
    Xasin
    wrote on last edited by
    #1

    Hello everyone!
    I hope this post belongs here, I'm still new to the forum structure.

    However, I thought I should ask the community about a problem I have not yet managed to overcome:

    Currently, my QT license is LGPL. I, however, want to be able to use the MQTT module, which is only available under the GPL license.
    That is perfectly fine by me, as I do license most of my code under the GPL licence anyways, and have it publicly available on GitHub.

    However, I found no way of selecting or changing Licenses, even after spending a good 30 minutes going through various sections. I was also never asked what open source license I wanted to use, and I did check the downloads page - it only ambiguously says "Download under (L)GPL", so no luck there.

    I'm at a bit of a loss because my whole project depends on using the MQTT module, and I sincerely hope that someone here knows how to obtain a GPL license.

    Many thanks,
    David

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

      Hi and welcome to devnet,

      The OpenSource version comes with both GPL/LGPL licenses already.

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

      X 1 Reply Last reply
      2
      • SGaistS SGaist

        Hi and welcome to devnet,

        The OpenSource version comes with both GPL/LGPL licenses already.

        X Offline
        X Offline
        Xasin
        wrote on last edited by
        #3

        @SGaist I'm glad to hear that!
        However, when using both the QT Online installer (i.e. trying a fresh installation) or the QT Maintenance tool, I am not able to install QT for Automation.
        I also can't include the "mqtt" module, which means it is not present on my system.

        If QT comes with both licenses already, my question would then be how to install QT for Automation

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

          IIRC, with the OpenSource version, you have to build the module yourself which is not something hard, a classic qmake, make, make install combo and you should be good to go.

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

          X 1 Reply Last reply
          3
          • SGaistS SGaist

            IIRC, with the OpenSource version, you have to build the module yourself which is not something hard, a classic qmake, make, make install combo and you should be good to go.

            X Offline
            X Offline
            Xasin
            wrote on last edited by Xasin
            #5

            @SGaist Building the module would be acceptable, however I can't find the source for it. I checked GitHub as well as the QT Web page.

            The install instructions for QT for Automation refer solely to the QT online installer and selecting the "QT for Automation" module, which is sadly not listed for me.

            I'm already thankful for your help, I just find it a bit unsatisfying that there are only vague or unfitting instructions provided by the QT company themselves.

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

              The official sources repositories are located at http://code.qt.io/.

              The one that interests you is http://code.qt.io/cgit/qt/qtmqtt.git/

              By the way, it’s Qt, QT stands for Apple’s QuickTime which is likely not something that you are currently interested in :)

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

              X 1 Reply Last reply
              3
              • SGaistS SGaist

                The official sources repositories are located at http://code.qt.io/.

                The one that interests you is http://code.qt.io/cgit/qt/qtmqtt.git/

                By the way, it’s Qt, QT stands for Apple’s QuickTime which is likely not something that you are currently interested in :)

                X Offline
                X Offline
                Xasin
                wrote on last edited by Xasin
                #7

                @SGaist Thank you so much for your help!
                That does indeed seem to be the correct source for my needs.
                I'll try to build and install it later, if I have a problem I know where to post a question for it.

                If you can, I would highly recommend editing the MQTT or Qt for Automation page (or maybe the downloads page) to state where one can find GPL-only modules.
                Right now, everything keeps pointing to using the Downloader/Maintenance tool, which doesn't actually work for users of Open Source, and it creates somewhat of a confusing mess ^^'

                And thanks for the name correction, I hadn't noticed it was important.

                EDIT: The compilation worked. Loading the project up in QtCreator, building it, then running make install from the build folder.
                Thanks a lot for explaining this! I don't think I'd have got it running without the help here :)

                JKSHJ 1 Reply Last reply
                2
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  What page are you referring to ?

                  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
                  • X Xasin

                    @SGaist Thank you so much for your help!
                    That does indeed seem to be the correct source for my needs.
                    I'll try to build and install it later, if I have a problem I know where to post a question for it.

                    If you can, I would highly recommend editing the MQTT or Qt for Automation page (or maybe the downloads page) to state where one can find GPL-only modules.
                    Right now, everything keeps pointing to using the Downloader/Maintenance tool, which doesn't actually work for users of Open Source, and it creates somewhat of a confusing mess ^^'

                    And thanks for the name correction, I hadn't noticed it was important.

                    EDIT: The compilation worked. Loading the project up in QtCreator, building it, then running make install from the build folder.
                    Thanks a lot for explaining this! I don't think I'd have got it running without the help here :)

                    JKSHJ Offline
                    JKSHJ Offline
                    JKSH
                    Moderators
                    wrote on last edited by
                    #9

                    @Xasin said in Switch from LGPL to GPL:

                    If you can, I would highly recommend editing the MQTT or Qt for Automation page (or maybe the downloads page) to state where one can find GPL-only modules.
                    Right now, everything keeps pointing to using the Downloader/Maintenance tool, which doesn't actually work for users of Open Source, and it creates somewhat of a confusing mess ^^'

                    An edit was made recently to clarify things (it will become visible when the next version of Qt is released): https://codereview.qt-project.org/#/c/231875/

                    Is there anything else you think should be added?

                    EDIT: The compilation worked. Loading the project up in QtCreator, building it, then running make install from the build folder.

                    Great! Happy coding!

                    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                    X 1 Reply Last reply
                    3
                    • JKSHJ JKSH

                      @Xasin said in Switch from LGPL to GPL:

                      If you can, I would highly recommend editing the MQTT or Qt for Automation page (or maybe the downloads page) to state where one can find GPL-only modules.
                      Right now, everything keeps pointing to using the Downloader/Maintenance tool, which doesn't actually work for users of Open Source, and it creates somewhat of a confusing mess ^^'

                      An edit was made recently to clarify things (it will become visible when the next version of Qt is released): https://codereview.qt-project.org/#/c/231875/

                      Is there anything else you think should be added?

                      EDIT: The compilation worked. Loading the project up in QtCreator, building it, then running make install from the build folder.

                      Great! Happy coding!

                      X Offline
                      X Offline
                      Xasin
                      wrote on last edited by
                      #10

                      @JKSH Thanks a lot for the quick response! I like the new documentation version, as it is pretty clear about what OpenSource users should do.
                      I personally feel like a hint to the git repos might be helpful too, maybe something like: "Note to Open Source users: Modules available under only the GPL license have to be built from their source, available under code.qt.io"

                      However, with the current version, it's fairly easy to find the Qt MQTT GitHub Repository with a search or two, so this is not as much of an issue as before.

                      It's very pleasant to see how responsive Qt is regarding these issues, so thanks a lot for your help!

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

                        Just be aware that Github is merely a mirror and there are several projects that aims to provide MQTT support to Qt.

                        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

                        • Login

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