Home / Guides / License

PyQt License Explained: GPL v3 vs Commercial

Understand the PyQt license in plain English — what GPL v3 means for your project, when you need a commercial license, and how it compares to PySide6.

LICENSE

PyQt License Explained: GPL v3 vs Commercial

PyQt is free, but its license has real effects on how you can ship software. This guide explains the GPL and commercial options in plain English, so you know which one fits your project.

Two licenses, one library

Riverbank Computing offers PyQt under two licenses. One is the free GPL v3. The other is a paid commercial license. The code is exactly the same in both. Only your obligations change. You pick the one that matches how you share your app.

What GPL v3 means for you

Under the GPL you can use PyQt free of charge, even for commercial work. There is one catch. If you distribute your application, you must also offer your own source code under a compatible open license.

For open-source projects, hobby apps and learning, this is perfect. You were going to share your code anyway. The GPL simply keeps the chain open.

Using PyQt privately

Here is a point many people miss. The GPL's share-your-source rule only applies when you distribute the app. If you build a tool for yourself or for use inside your company, and you do not hand the program to outside users, you are not distributing it in that sense.

So internal tools and personal projects can use the free GPL version without publishing their source. If you are unsure, read the license text or ask a professional.

The commercial license

If you want to ship closed-source software — keeping your own code private while selling or giving away the app — you need a commercial PyQt license from Riverbank. It removes the GPL's share-your-source duty.

Pricing is per developer. Check the Riverbank site for current terms, since prices change over time.

How PySide6 differs

PySide6 is the official binding from The Qt Company. It uses the LGPL. That license lets you ship closed-source apps for free, as long as users can relink the Qt libraries.

So if a permissive license matters more than anything, PySide6 is worth a look. Our PyQt vs PySide6 guide compares them in full.

Which one applies to me

Building open source, learning, or using it internally? The free GPL covers you. Shipping a closed-source product with PyQt? Buy the commercial license, or switch to PySide6's LGPL. That is the whole decision in one line.

Common licensing scenarios

A few everyday cases cover most questions. Building an open-source tool and sharing the code? The free GPL fits perfectly. Writing a script only you and your team use inside the company? The GPL is fine, because you are not distributing it to outsiders.

Selling a closed-source desktop app built on PyQt? That is when you need the commercial licence, or you switch to PySide6's LGPL. Matching your situation to one of these cases answers the question quickly.

Attribution and notices

When you ship a GPL application, you include the licence text and make your source available to the people who receive the app. It is good practice to keep a clear licence file in your project from day one.

Being upfront about which libraries you use and under what terms builds trust, and it saves you from scrambling to sort out notices right before a release.

Staying on the safe side

If you are ever unsure, two steps keep you safe. Read the official licence text rather than a summary, since only the text is binding. And for anything with money or legal risk attached, ask a professional who can look at your exact case.

This page is a plain-English overview to help you understand your options. It is not legal advice, and licensing details can change, so treat the official source as the final word.

Why two licenses exist

The dual licence is not a trick; it is a fair trade. Riverbank gives the full library away for free under the GPL, which keeps open-source software thriving. In return, companies that want to keep their own code private pay for a commercial licence, which funds ongoing development.

This model has kept PyQt healthy for many years. Hobbyists and students pay nothing. Businesses that profit from closed-source apps contribute. Everyone gets the same high-quality toolkit.

Understanding the reasoning makes the choice feel less like a hurdle and more like picking the lane that fits you. Both lanes lead to the same powerful library.

A simple decision guide

Here is a quick way to decide. Ask one question: will you give people your app without giving them your source code? If the answer is no, the free GPL covers you. If the answer is yes, you need the commercial licence or PySide6's LGPL.

Most learning, open-source and internal work falls on the free side. Only closed-source products you distribute need the paid route. That single question settles the vast majority of cases in seconds.

When money or legal risk is involved, confirm with the official licence text or a professional. This overview points you in the right direction, but the licence itself is the final authority.

Key takeaways

PyQt's licence sounds complex but resolves to one question: will you distribute your app without sharing your source code? If no, the free GPL covers you, including commercial sales where you do share source. If yes, you need the commercial licence or PySide6's LGPL.

Open-source projects, learning and internal tools all sit comfortably on the free side. Only closed-source products you hand to others need the paid route. That single distinction settles the vast majority of real cases.

Because this is a plain-English overview and not legal advice, confirm anything with money or risk attached against the official licence text or a professional. The licence itself is always the final word.

FAQs

Is PyQt really free?

Yes, under GPL v3. You only pay for the commercial license if you need to keep your code closed.

Can I sell a GPL app?

Yes. The GPL allows commercial sales. You just have to make the source available to the people you distribute it to.

Does the commercial license cost a lot?

It is priced per developer. See Riverbank's site for the current figure.

Is this legal advice?

No. This is a general summary. For binding terms, read the official license or talk to a lawyer.

Conclusion

PyQt's license is simpler than it looks. Free GPL for open, internal and learning work. A paid commercial license for closed-source products. And PySide6's LGPL as a free path for proprietary apps. Match your plan to the right option and you are covered. Next, see how the two bindings compare in our PyQt vs PySide6 guide.

Ready to start? Download PyQt or run pip install PyQt6.