Can I use Qt LGPL license and sell my application without any kind of restrictions?

Rika picture Rika · Aug 16, 2012 · Viewed 46.3k times · Source

I want to start a cross-platform project. I had my researches and now I am almost certain Qt is the right deal. There is a big obstacle here though: licensing.

I want to sell my project and I also don't want to give out any source related to my work or pay for a license. I checked and noticed Qt offers both commercial and open source solutions. I have heard too many conflicting sayings on Qt licensing which confused me a lot. Some say that even if I use LGPL version of Qt, I still need to submit my code. Is this true?

Can someone give me a simple explanation on Qt licenses and tell me if I can sell my application without any kind of restrictions at all or not? Would anyone tell me any other equivalents to Qt for cross-platform development without any restrictions?

Answer

Cornstalks picture Cornstalks · Aug 16, 2012

Just dynamically link to Qt. If you dynamically link to LGPL libraries, there's nothing to worry about.

If you statically link to them, you can just distribute your object files (not your source code), and you'll be fine.

The idea of the LGPL is that the end user has to be able to replace the LGPL library with a version they want. Dynamically linking to the LGPL library lets you do that, as does statically linking and distributing your object files. So long as you do this, you can sell your closed source program all you want.

Of course, there's more to the LGPL than just this, but that's the relevant part.