If you're building a product with Qt, one of the first questions is: "Do we have to share our code, and do we have to pay?" Qt gives you two options. This guide explains both in plain words.
The Short Answer
- Open source (LGPL): Free to use. You can keep your own code private if you follow a few rules.
- Commercial: Paid, with a yearly subscription. You don't have to follow open-source rules, and you get official support.
Neither option is better for every team. The right choice depends on what you're building and how much you want to share.
Option 1: Open Source (LGPL)
LGPL stands for GNU Lesser General Public License, version 3. It is a free license that lets you sell and keep your own app's code private, as long as you respect Qt's rules.
What you need to do:
- Tell your users that your product uses Qt, and include the license text.
- Make Qt's source code available. A link to the official Qt source is usually enough.
- Let users replace the Qt parts with their own version. This is easiest when Qt comes as separate files, such as `.dll` on Windows, `.so` on Linux, or `.framework` on macOS, rather than being packed inside your app.
- Don't block users from changing or debugging the Qt parts.
Watch out for these:
- Some Qt parts are GPL only. GPL is a stricter open-source license. If your product uses those parts, your whole product must also be open source under GPL. Check the license of each Qt module you use.
- No official support. Open-source users rely on community forums and documentation.
Option 2: Commercial
A commercial license removes the open-source obligations. You pay for the right to use Qt in your own closed-source product.
Key points:
- Yearly subscription. Plans run for one or three years and usually renew automatically.
- Every developer needs a license. That includes anyone on the team who works with Qt tools, such as designers. You can't mix open-source and commercial users in the same project.
- Official support and updates. You get support and early access to new releases.
- Devices need an extra license. If you ship a hardware product (for example, a control panel or an industrial screen), you need a distribution license for each device. It must be bought at least 60 days before the devices ship or go into inventory.
- Small business discount. Companies with annual revenue (including funding) under about 1 million euros can get a discounted Small Business license. There's a limit of three licenses per company and limited support.
Quick Comparison
| Question | Open source (LGPL) | Commercial |
|---|---|---|
| Cost | Free | Yearly subscription |
| Keep your app's code private | Yes, if you follow the LGPL rules | Yes, no open-source rules |
| License needed per developer | No | Yes, for every developer |
| Official Qt support | Not included | Included |
| Hardware devices | Follow LGPL rules | Pay a distribution license per device |
| Mix open source and commercial in one project | Not allowed | Not allowed |
Which Should Your Team Choose?
Open source may be a good fit if:
- You're learning Qt, building a hobby project, or making open-source software.
- Your product can follow the LGPL rules, and you're comfortable shipping Qt as separate files.
- Your team is small and doesn't need official support.
Commercial may be a good fit if:
- You want to keep everything closed and avoid legal complexity.
- You need official support or access to the latest features.
- You're shipping a hardware product, or you use Qt parts that are GPL only.
Common Questions
Can I sell an app made with Qt?
Yes, under either option. Under LGPL, you must follow the rules above.
Do I have to share my own source code?
Under LGPL, no. Your own code can stay private. Qt's own code must stay available, though.
Does Qt charge a fee for every copy I sell?
For apps, the commercial license is based on the number of developers, not the number of copies. Hardware devices are the exception: they need a per-device distribution license.
Is this legal advice?
No. This article gives general information. For your specific product, talk to a lawyer who understands software licensing.
Before You Decide
Qt's prices and terms change from time to time. Check the official Qt pricing page at qt.io/pricing and the licensing documentation at doc.qt.io/qt-6/licensing.html before you make a purchase.
Disclosure: This article was drafted with the help of an AI writing tool and then reviewed and edited by the author. It is provided for general information only and is not legal advice. Qt's licensing terms and prices can change, so please check the official sources before making any decision: qt.io/pricing and doc.qt.io/qt-6/licensing.html. For questions about your own product, speak with a qualified lawyer. Last reviewed: 2026-11-29.