Skip to main content

Qt Licensing Explained: LGPL vs Commercial for Product Teams

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.


Popular posts from this blog

Integrating custom OpenGL rendering with Qt Quick via QQuickFramebufferObject

Integrating custom OpenGL rendering code, for example to show 3D models, with Qt Quick is a popular topic with Qt users. With the release of Qt 5.0 the standard approach was to use the beforeRendering and afterRendering signals to issue the custom OpenGL commands before or after the rendering of the rest of the scene, thus providing an over- or underlay type of setup. With Qt 5.2 a new, additional approach has been introduced: QQuickFramebufferObject . This allows placing and transforming the custom OpenGL rendering like any other Quick item, providing the most flexible solution at the expense of rendering via OpenGL framebuffer objects. While it was little known at the time of its original release, it is becoming more and more popular in applications built with Qt 5.4 and 5.5. It is also one of the building blocks for Qt 3D, where the Scene3D element is in fact nothing but a QQuickFramebufferObject under the hood. We will now take a look at this powerful class, look at some example...

High-DPI Support in Qt 5.6

Qt 5.6 brings improved high-DPI support, in the form of better support for the devicePixelRatio scaling mode. In this blog we’ll look at how to configure and enable it, from the perspective of a Qt application user and a Qt application developer. Unscaled sammegame vs scaled samegame Developing applications won’t be covered in depth now, but has to some extent been covered earlier . The short story is that applications generally benefit from this high-DPI mode even without modifications. This high-DPI mode is a virtualization mode, where there is not necessarily a 1:1 correspondence between a unit in the QWidget/Quick item coordinate system and a pixel on screen. One “unit” then has constant visual size across systems with different display densities, and actual screen pixel density is to a large degree hidden from the application. Dots Per Inch (DPI) is the traditional measurement for display density, where a standard density display has a DPI value of 72 or 96. Qt as always...

Qt Weekly #27: WiFi networking support on embedded devices

As a part of the Qt for Device Creation offering we provide several helpful add-on modules that assist in creating applications for embedded devices. In this blog post I would like to demonstrate some of the features supported by the B2Qt WiFi add-on module. What is it? The B2Qt WiFi module provides APIs for connecting embedded devices to a wireless network. There are C++ and QML APIs available for managing wireless network connectivity, scanning for wireless network access points, retrieving information from these access points, monitoring for network state changes and more. The API allows you to manage when and to which network to connect, and when to go offline. Overview of the API The module consists of 3 classes: (Q)WifiConfiguration – Used to define a network configuration. (Q)WifiDevice – Represents a physical device. (Q)WifiManager – Main interface to the WiFi functionality (Singleton). How to use it Here is a code snippet in QML demonstrating how easy it is to connect a ...