Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. LGPLv3 compliance for a PySide6 single-file portable application
Qt 6.12 LTS is out! See what's new in the release blog

LGPLv3 compliance for a PySide6 single-file portable application

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 147 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.
  • C Away
    C Away
    charan27
    wrote last edited by
    #1

    Hello Qt community,

    I have developed QuickTray, a free, MIT-licensed, open-source Windows application.

    Build environment:

    • Python 3.14.6
    • PySide6 and Shiboken6 6.12.0
    • Qt 6.12.0
    • PyInstaller 6.22.3

    The application is packaged as a single-file portable executable of approximately 29.57 MiB.

    I have collected the upstream Qt and PySide6 source archives, licence texts and third-party attribution materials.

    The complete application source and PyInstaller build configuration are available on GitHub:
    https://github.com/ramcharanreddy-cloud/QuickTray

    Before publishing the executable, I would like to clarify:

    1. Is single-file PyInstaller distribution permitted under LGPLv3 when sufficient rebuilding materials are provided?
    2. Can users' ability to rebuild the executable with modified Qt libraries satisfy Section 4(d)(0)?
    3. What additional source archives, notices or build materials are required?
    4. Are there any specific compliance requirements for PySide6 applications packaged using PyInstaller?

    I would appreciate guidance on distributing the application correctly while retaining its single-file portable format.

    Thank you!

    FeRDNYCF 1 Reply Last reply
    0
    • C charan27

      Hello Qt community,

      I have developed QuickTray, a free, MIT-licensed, open-source Windows application.

      Build environment:

      • Python 3.14.6
      • PySide6 and Shiboken6 6.12.0
      • Qt 6.12.0
      • PyInstaller 6.22.3

      The application is packaged as a single-file portable executable of approximately 29.57 MiB.

      I have collected the upstream Qt and PySide6 source archives, licence texts and third-party attribution materials.

      The complete application source and PyInstaller build configuration are available on GitHub:
      https://github.com/ramcharanreddy-cloud/QuickTray

      Before publishing the executable, I would like to clarify:

      1. Is single-file PyInstaller distribution permitted under LGPLv3 when sufficient rebuilding materials are provided?
      2. Can users' ability to rebuild the executable with modified Qt libraries satisfy Section 4(d)(0)?
      3. What additional source archives, notices or build materials are required?
      4. Are there any specific compliance requirements for PySide6 applications packaged using PyInstaller?

      I would appreciate guidance on distributing the application correctly while retaining its single-file portable format.

      Thank you!

      FeRDNYCF Offline
      FeRDNYCF Offline
      FeRDNYC
      wrote last edited by
      #2

      @charan27

      IANAL, but keep in mind that the LGPLv3 exists as a set of modifications of the GPLv3, which you should also read (and include with your packaging). Specifically, it's section 6 of the GPLv3 which is most relevant.

      1. Conveying Non-Source Forms.

      You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:

      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, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.

      c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.

      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.

      e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.

      Basically, your GitHub repo represents a valid form of conveyance for the application source, and satisfies the distribution requirements of the GPL/LGPL, as long as you include in your application a copy of the license(s), and a link to the GitHub repo. That's all you have to do to have sufficiently "conveyed" the source code.

      1 Reply Last reply
      0
      • FeRDNYCF Offline
        FeRDNYCF Offline
        FeRDNYC
        wrote last edited by
        #3

        (This assumes that all build instructions, configuration, and steps for re-creating the single-file executable are included in the GitHub repo. Including the PyInstaller packaging parts. But if someone who's cloned your repo can follow the instructions contained within to re-create the single-file application — using either the same or different Qt versions, etc., at their discretion ­— then you're fine.)

        You also don't need to include any of the Qt, Python, PyInstaller, etc. library/tool source within your repo, as long as the build instructions/system are capable of either downloading what's needed at build time, or using a separately-installed copy the user provides. You just need to provide the code that's unique to your application.

        1 Reply Last reply
        0
        • C Away
          C Away
          charan27
          wrote last edited by
          #4

          Thank you for the clarification.

          For our actual Windows installer, we have included GPLv3 and LGPLv3 licence texts, third-party notices, replaceable Qt DLLs, public application source code, PyInstaller configuration and version-matched upstream source archives.

          Are there any additional Qt-specific source or attribution requirements for redistributing the official PySide6 Windows wheel binaries under LGPLv3?

          FeRDNYCF 1 Reply Last reply
          0
          • C charan27

            Thank you for the clarification.

            For our actual Windows installer, we have included GPLv3 and LGPLv3 licence texts, third-party notices, replaceable Qt DLLs, public application source code, PyInstaller configuration and version-matched upstream source archives.

            Are there any additional Qt-specific source or attribution requirements for redistributing the official PySide6 Windows wheel binaries under LGPLv3?

            FeRDNYCF Offline
            FeRDNYCF Offline
            FeRDNYC
            wrote last edited by
            #5

            @charan27

            The page https://www.qt.io/development/download-open-source contains both an "Open Source Usage Obligations" section, and a FAQ question "What are my obligations when using Qt under the LGPL?" that covers all of that. The answer to the latter reads,

            Firstly, you have to note that all Qt open source modules are not available under LGPLv3 . Some modules are available under GPLv3 for open source usage, and e.g. 3rd party components such as Chromium web engine are provided under LGPLv2.1.

            When Qt modules and libraries under the LGPLv3, there are a couple of obligations you will need to fulfill:

            • When using Open source software you need to be aware of and track the licensing of each sample, source code sniplet, module and library you use in your project.
            • You will need to deliver the complete source code of Qt libraries you used, including all modifications you did or applied, to your users/customers. Alternatively, you need to provide a written offer with instructions on how to get the source code. Please also note that this has to be under your control, so a link to the source code provided by the Qt Project or Qt Company is not sufficient.
            • The LGPL allows you to keep your own source code of your application private as long as it is “work that uses” the library. Dynamic linking is usually recommended here.
            • The user of your application has to be able to re-link your application against a different or modified version of the Qt library. With LGPLv3 it is also explicitly stated that the user needs to be able to run the re-linked binary on its intended target device. It is your obligation to provide the user with all necessary tools to enable this process. For embedded devices, this includes making the full toolchain used to compile the library available to users. For parts licensed under LGPLv3 you are obliged to provide full instructions on how to install the modified library on the target device (this is not clearly stated with LGPLv2.1, although running the application against the modified version of the library clearly is the stated intention of the license).
            • The user of an application or device using LGPL software has to be notified of their rights by providing a copy of the full LGPL terms and conditions text to the end user and displaying a prominent notice about your usage of LGPL software.

            The LGPL terms and conditions cannot in any way be restricted by other licensing terms. If an application is not fully complying to the obligations defined in the LGPL, it is not allowed to be distributed at all and you will lose all your rights to the LGPL software.

            The GPL has a tighter set of rules than the LGPL (Lesser GPL).

            Note that "Please also note that this has to be under your control, so a link to the source code provided by the Qt Project or Qt Company is not sufficient." regarding the Qt sources is at odds with what I said above. Since it's the Qt Project that's licensing the libraries to you, their advice should almost certainly take precedence over mine.

            (I can only say that I've never seen an open-source project that uses Qt as a dependency worry about distributing copies of the Qt source, but then I suppose most of them don't distribute binaries produced via PyInstaller so ¯\_(ツ)_/¯.)

            1 Reply Last reply
            0
            • C Away
              C Away
              charan27
              wrote last edited by
              #6

              Thank you for taking the time to clarify this and for pointing me to Qt's official LGPL usage obligations.

              I have already downloaded the corresponding Qt 6.12.0 and PySide6 source archives. Based on your clarification, I plan to make these available directly through my GitHub release rather than relying solely on upstream download links.

              QuickTray currently uses dynamically linked Qt libraries and includes:

              • GPLv3 and LGPLv3 licence texts.
              • Third-party licensing and attribution notices.
              • Publicly available application source code.
              • Build and packaging instructions.
              • Instructions for replacing the bundled Qt libraries with compatible modified versions.

              The application is distributed using PyInstaller in one-directory mode, packaged into an offline installer using Inno Setup.

              Would hosting the corresponding upstream source archives alongside the installer, together with the above measures, be an appropriate approach to meeting the LGPLv3 requirements? Are there any additional obligations specific to PySide6 applications packaged using PyInstaller that I should consider?

              I have also contacted the Qt team by email for further clarification.

              Thank you again for your patience and guidance. I really appreciate your help.

              1 Reply Last reply
              0
              • C Away
                C Away
                charan27
                wrote last edited by
                #7

                Thank you for the previous clarification regarding LGPLv3 obligations.

                I have now implemented the licensing notices, library replacement instructions and self-hosted source archives for QuickTray, an MIT-licensed Windows application.

                The application uses the official PyPI PySide6 6.12.0 packages, packaged using PyInstaller in one-directory mode.

                I am hosting the following version-matched source archives:

                • pyside-setup-everywhere-src-6.12.0.tar.xz
                • qtbase-everywhere-src-6.12.0.tar.xz
                • qtimageformats-everywhere-src-6.12.0.tar.xz
                • qtsvg-everywhere-src-6.12.0.tar.xz
                • qttranslations-everywhere-src-6.12.0.tar.xz

                Could you clarify whether these archives contain the complete corresponding source for the relevant official Windows PySide6 6.12.0 wheel binaries?

                Were any additional patches, generated source files or build scripts used that must also be made available?

                I am seeking technical clarification about the official build provenance, rather than legal approval of my application.

                Thank you.

                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
                • Unsolved