Hacker News new | ask | show | jobs
by numlock86 1352 days ago
Tried to use QT for a new product based on a STM32F769 MCU some time ago. I got laughed at and waved off when asking for the budget needed to buy/licence QT stuff. To be fair, they need a business model, but the target audience seems just to be automotive or anyone who's planning to roll out something with at least a million pieces in mind.
7 comments

> I got laughed at and waved off when asking for the budget needed to buy/licence QT stuff.

This.

Regardless of Qt's technical merit, it's licensing automatically takes it out of the table of most of all potential projects.

https://www.qt.io/pricing

They work really hard to hide this, but they do have a LGPL license that applies to most of the framework, and only some parts (charts, etc.) are GPL/commercial only. For those old enough to remember, this license issue was at the heart of the Gnome/KDE schism.

From their site <https://www.qt.io/download-open-source>: LGPL – Any modification to a Qt component covered by the GNU Lesser General Public License must be contributed back to the community. This is the primary open source Qt license, which covers the majority of Qt modules.

If you're not familiar, in practice, the difference between GPL and LGPL is that LGPL does allow dynamically linking a library with a closed source program, without requiring that the program also becomes GPL/LGPL. This is compatible with most development as long as you either don't modify Qt, or are ok with those modifications becoming open source.

LGPL3 is a no-go for a lot of embedded projects, as OP is probably finding.

The anti-tivoization clauses mean you need to provide a way to install user-built Qt libraries on the target device. You might think that's not a big deal until you go to work for an automotive or medical company and meet up with the massive wall of lawyers that tell you no fucking way.

But those projects should have the budget for a real license, so that's not a real issue.

The problem is typically people not bothering to understand the L in LGPL.

> But those projects should have the budget for a real license, so that's not a real issue.

You're missing the whole point.

It's irrelevant whether projects should have a budget or not.

The whole point is that there are plenty of alternatives that do not require thousands of dollars per year*developer, nor do require lawyers to audit releases.

As others said, there aren't that many alternatives that work as well as Qt in a crossplatform way or in the embedded space.

On the desktop you can go Electron, but you then pay penalties in performance that not everyone is willing to endure.

In the embedded space there is little or no alternative.

There isn't so many alternatives that works so well in the embedded space. (in the kind of device where a web browser is not an option)
Now I'm curious what you think are the "plenty of alternatives" for embedded that are obviously a better choice.
Not if you also want decent performances
The anti-tivoization clause only applies to consumer devices. There is no issues with using the LGPL in a medical device since the customer is usually commercial.
If you have more documentation to back that up I'd love to see it. From my discussions with the walls of lawyers, the interpretation varies by jurisdiction.

The actual LGPLv3 text has zero instances of the word "commercial" or the word "consumer" so interpretation is all we can go by.

Search again. The LGPLv3 is just referencing the GPL. The GPLv3 paragraph 6 define in which conditions you need to provide the installation information, and explicitly say it is only for user product:

> A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling.

http://radar.oreilly.com/2007/03/gplv3-user-products-clause....

The FSF felt that consumers needed protected from tivoization but commercial users did not since they had the financial resources to fight for themselves with contract law.

A commercial customer has the same right as everyone else using LGPL software.
They do not. http://radar.oreilly.com/2007/03/gplv3-user-products-clause....

The FSF felt that consumers needed protected from tivoization but commercial users did not since they had the financial resources to fight for themselves with contract law.

> They work really hard to hide this, but they do have a LGPL license that applies to most of the framework (...)

No, LGPL also excludes projects from most commercial software.

Also, keep in mind that this is not a choice between Qt with a paid license or Qt with LGPL. It's a choice between Qt and any other framework, and licensing alone makes Qt a very poor choice.

Which frameworks though ? WxWidgets, GTK and Electron need compliance with LGPL, and I don't know any other that would be comparable in terms of features with Qt
Feature-wise, wxwidgets and gtk+ are a joke compared to Qt.

Electron is not just a joke but a fat pig.

Truth is there's nothing comparable to Qt in the cross plataform world today, unless you are willing to take the risk of Flutter, JUCE, some web technology (which would be regarded as obsolete by the time you ship your product), etc.

Sure, I agree haha. They are the closest but they aren't comparable (although likely for GTK+ one would mention the entire glib stack which is I think comparable to Qt in scope)
OP is talking embedded, so things like TouchGFX.

https://www.st.com/content/st_com/en/campaigns/touchgfx-adva...

That's perhaps an advantage that Flutter has over Qt.

See: https://github.com/flutter/flutter/blob/master/LICENSE

The API span of flutter is ridiculously small compared to Qt. Does it even have a proper tree view? I only see stuff comparable to Qt Quick there: https://gallery.flutter.dev/ ; nothing to make a complete desktop UI.

e.g. if I look at what I can find for docking widgets (and I have hardly ever seen an actual useful software for content creation without a whole set of dozens of docks): https://caduandrade.github.io/docking_flutter_demo/#/ like, is this a joke?

I see it diferently, when I want to enjoy the work of Qt devs as free beer, my work is also free beer.

When I want to get paid for stuff I develop with the work of Qt devs, then like in other profession, I pay the creators of tools I get money to put bread on the table.

They also need to buy bread, so it is only fair we share the same conditions.

Yes, but sharing the cost with lots of other developers would them enable to bring the price down.

For me, it seems like Jetbrains vs. Borland/Inprise/Codegear/Embarcadero. Jetbrains always had reasonable prices, but a huge amount of customers. Embarcadero tries to milk the few customers that remain.

Qt is like Embarcadero.

Embarcadero Delphi and C++ Builder are used for legacy stuff, it's maintenance mode and Idera (owners of Embarcadero) are following the same model as Broadcom, Microfocus and others: milk enterprise customers because they are too invested and they are not going to rewrite those applications. I don't think anyone has started any meaningful project in Delphi or C++ for at least 10-15 years.

Qt on the other hand is used a lot and new projects are started with Qt everyday. Qt is not Embarcadero.

They are still quite strong on the German, market and Microsoft is still clueless in making anything that can beat C++ Builder, the best they could do was C++/CX and internal politics killed without any regards for the customers using it.

C++/WinRT is a joy to use for anyone whose maximum of productivity was using Visual C++ 6.0 for COM development, exactly the same Visual Studio tooling. /s

So plenty of enterprises do new projects in C++ Builder, and Delphi comes for the ride.

https://entwickler-konferenz.de/

I know of a company in Belgium that does laboratory automation software in Delphi, because they don't want to use languages like C and C++, and .NET lacked the low level coding and native compilation that they want.

For them it isn't legacy, rather from their point of view the alternatives suck, and they will keep at it as long as they can.

*C++Builder, not C++ in general
That is the usual speech, yet when they offered cheaper packages about 10 years ago, everyone wanted free beer, hence why they turned into those that actually pay.

When everyone wants free beer, in the end they get Electron.

> When everyone wants free beer, in the end they get Electron.

Which uses webkit, which is LGPL :D

It seems all the people here who complain about QT's license never bothered to read the license of anything else.

Well, it's their business, so fair enough. But that means that lots of projects can't and won't even look into using Qt.
> it's licensing automatically takes it out of the table of most of all potential projects.

maybe consider licensing that "potential project" under a license that allows you to use the OpenSource Qt version?

Seriously! That licensing is a feature for the public, not a bug. Make your project open source.
> Seriously! That licensing is a feature for the public, not a bug. Make your project open source.

It's ok for activists to feel that free software is the solution to every problem in the world, but back in the real world there are projects for which open source is not an option and parroting activist mantras is not helpful.

So in the real world, you don't get to have that nice gui library for free if you aren't willing to reciprocate and offer your own source for free as well. How terrible.
What you're describing is obligations under GPL'd code, not LGPL'd code. Qt is mostly LGPL'd code.
So why expect the library for free then? Saying open source is not an option but not being willing to pay for the licencing cost of the "commercial" Version is quite hypocritical no?
Not at all hypocritical. The people who authored the code release most of it under LGPL, the intention of which is to allow closed-source dynamic linking against the LGPL'd library. I didn't decide this. The users didn't decide this. The people who actually wrote the code decided this.
Or... comply with the LGPL with regard to dynamic linking and the other LGPL requirements and don't use any GPL'd components.
You can use almost all of QT even in close source, provided you only link dynamically.
I'm pretty sure you could even link statically, as long as you provide the necessary .a / .o files to rebuild against a different version of the LGPL library. But of course dynamic linking is the safer approach.
I believe you are correct.

You'd have to provide a way to relink.

I seriously can't see a judge ever being able or willing to understand what's at stake here in case this ever gets to court.

Woof, those prices are so enterprise.
It's used a lot in cars…
I am aware. But I have a certain problem with enterprise pricing and the idea that so much money is put into software in all aspects of a company. I work in the car industry though, so we have much much more expensive applications.
It is also very in your face. Went to go install the SDK on windows - have to create an account, click a ton of stuff in the installer to convince it that it's okay to give me the free version, etc

It then proceeds to install 20+ gigabytes (yes) of stuff, including their ide that you can't actually uncheck.

No thanks, i'm out.

The ide is actually decent. Or was in the Qt 4 days. The rest... as the OP in this thread says, the only thing we're using Qt for is something something automotive (and paid).

We don't bother going near the LGPL version for small things. Too many threats.

QTCreator is one of the best C++ IDEs for Linux. I'd imagine Visual Studio is better but I haven't developed on Windows in years.
I mean, i understand it, and i'm sure it's great for their ecosystem. I'm sure it integrates well with UI designers, etc.

But i'm also really not that interested in using a library specific IDE at that level.

Because QT is not all i do, etc.

For folks who do, i'm sure it's great.

For C++ IDEs on linux, CLion works great. VSCode is reasonable too.

QtCreator works with non-Qt, CMake based projects, has a feature set which is very competitive with CLion's and it's about a billion times faster.
I get that, but that's also clearly not the market they are targeting or customers they want, etc :)

Otherwise, Clion would be dead by now in favor of it!

Nobody is forcing you to use their IDE. Just use VSCode.

Also, for your complaint about the size of the SDK: most people download the Python bindings (often through conda) and don't do compilation at all (I write interactive applications using QtPy, python slowness isn't an issue). But also: you're not the target audience.

I use Qt Creator for all my C++ projects and I am not doing any Qt work.
I use it to build non-QT code with cmake.
That is besides the point parent poster is making though. are they also making it so that you cannot use the GPL software w/o the IDE? if so that would be a violation of GPL.
He's just complaining about the installer of the pre built binaries that asks for an account.

You can download sources and build them yourself. Which is what linux distributions do.

I'm complaining that they make it hard for people to want to try it by making it huge and unwieldy :)

(QT is more than linux-only. In fact, that's the whole point. They could simplify it greatly if it was linux-only.)

CLion is way better for C++ on Linux, IMO.
I think you can get by with 5gb or so if you're only building for one platform. But if you select Android, iOS, sources, etc it can get big
you can install it from vcpkg or conan (or https://github.com/miurahr/aqtinstall if you really want the official Qt binaries) and it'll be much less
You give up too easily. Do you know you can download the sources via git? You can even pick and choose which Qt modules you want. No account needed.
I don't give up easily at all most of the time, but i also am careful how i spend my time.

So yes, i know you can download sources, and many years ago, i even built them once!

Does it occur to you this is maybe not what i want out of a developer experience? That if this is the experience the company wants to provide me, that that is a good sign i am not who they want or target? (Or that they suck at business, which is possible)

First impressions matter a lot.

I can surely make it all work, but why would I? There are plenty of great alternatives where i don't have to any time trying to make it work, and where the company is not making it annoying for me.

So i just go use those.

The inconvenience of software licensing and license management and the potential legal issues that incorporating third party licensed software can create for a project are a much bigger impediment to the use of commercial developer tools and libraries than the cost.

If the cost is reasonable for what you're getting, most companies wouldn't think twice about paying for a library or a dev tool if it'll help them ship faster or better products... and if they didn't have to think about it much anymore after that decision. You can see this by the willingness of companies to shell out for SaaS tools like GitHub paid accounts and commercial CI/CD services. There isn't really much lock-in there. If you need to abandon GitHub you can move to GitLab or stand up your own instance of something like Gitea. Might lose some meta-data but your main code (product) is intact.

Instead the nature of licensing means that the license of the library you're incorporating contaminates your project and you have to get legal involved. Even having to contact legal is generally the kiss of death.

It also raises questions about whether the vendor can rug pull you in the future and kill your product. To be fair this can sort of happen in open source if you rely on a complex project that gets abandoned and don't have the resources to adopt it, but at least there you have some recourse and you can keep using what already exists until you have a long term solution.

This complexity is really why we can't have nice things, since things as powerful as Qt really do require funding in one form or another.

Maybe Slint could be an option? From former Qt developers.

https://slint-ui.com/

There's no pricing indication other than "contact our sales", which is a common wording for "just as expensive (or even more) as the competition". Also their licence and subscription (yuck) model seems awful. Pay a monthly fee per device as long as I sell my product? No thanks. I got laughed at for presenting QT as a possible solution. This will just make me look like a tryhard clown.
>There's no pricing indication other than "contact our sales", which is a common wording for "just as expensive (or even more) as the competition"

Or the one-two punch of "Contact our sales", followed immedietely by "What is your budget?" ... which is a common wording for "How much money do you have? That is what this will cost!"

They are almost certainly not as rigid about pricing and conditions as the Qt Company. Source: I know these guys.
Perhaps they could provide some reasonable (production!) public pricing plans and allow custom quotes for folks who want to negotiate the price further then.
Doesn't yet have a table or tree control - would only work for very basic UIs in this limited state. Also, GPL and all that entails (with rare exception that you can petition for a free license if a very small entity or open source).
Has anyone tried slint? How does it compare to Qt v5 or v6?
When I was a developer and engineering manager, we used Qt for many desktop and embedded (not microcontroller) applications for many years. It was a bit cheaper than today (~3K EUR/seat) but it paid by itself due to the increased productivity. It was a no brainer.

With mobile platforms, I can imagine the same is true: you can save a ton of development time money.

Perhaps you could choose this license? https://www.qt.io/pricing/qt-for-small-business
Yes, the Qt licensing model is the reason we have not touched it. Not interested in the ramifications it creates. For example, imaging you are selling your company and, during due diligence, the buyer discovers you have to release your source code. Yeah. Talk about having a bad day.

In addition to this, I have exactly zero interest in any licensing model that requires a per-device fee. First of all, the fee, at least last time I looked, is completely opaque. My guess is they try to squeeze you for all they can. Second, and often more important, I have zero interest in Qt having an internal view of our business --which is what they get when you have to account for how many devices you made, sold and when.

I don't mind the per-developer or site licenses. Per-device licenses are intrusive. They also get to tap into your profit margin. No, thanks.

We have subscriptions with JetBrains for their excellent tools. If JetBrains turned around and said "You have to pay a fee for every unit sold", we would drop them like a hot potato. Everyone understands that example, yet somehow people don't recoil at this idea of per-device licensing. Hardware is hard enough as it is; adding a blood-sucking vampire to the equation doesn't make it easier.

Think about it. Is the work Qt does more complex than what JetBrains do? Not at all. I can actually see JB's work being massively more difficult, particularly when you consider the array of tools they have to evolve and maintain. Why is it that Qt think they are entitled to poke a needle into your arm and suck blood out of every device you make?

Even better, the open source license demands contribution of any enhancements back to Qt. They, in turn, take those advances and sell them through their commercial licensing program. Do the contributors get a piece of the action? Why not?

Also, I believe that, until recently, if you stopped paying your developer licenses you were prohibited from selling your product. In other words, if I created a product using Qt five years ago and never touched it again, I'd have to pay them a developer's license for the life of the product. Once again, blood-sucking vampire behavior. That said, I believe I read something about this policy changing. Since I have not found a way to care about Qt, I didn't bother to read that article in detail.

Another analogy: It's like what's going on with modern "smart" TV's. You go buy a TV and the manufacturers somehow feel entitled to harass you with advertising and all sorts of data gathering. Intrusive and wrong.

How could Qt change my mind?

I don't have a problem paying a reasonable per-developer annual license fee. What's reasonable? A few hundred dollars, say, $300 or so. After that, no per-device fees, get your microscope out of my ass and the license isn't tied to released products in any imaginable manner.

I very much doubt this will happen.

It seems like Qt is trying to walk that 'license tightrope' that many tool makers do...how do you make your product affordable for small developers without making it possible for big businesses to pay you a pittance for helping them reap $millions or even $billions in product sales.

I would love to pay Qt a reasonable license fee once my product that uses it starts generating some decent revenues. I want them to succeed and keep building better versions. But I also don't want to have to shell out outrageous license fees when I am just getting started. This goes for any tool or library I choose to use.

Do you know about Qt for Small Business? https://www.qt.io/pricing/qt-for-small-business
> Do you know about Qt for Small Business?

From the page:

"Your business has a combined revenue and funding equal to or less than two-hundred and fifty thousand ($250000) USD"

(revenue + funding) < 250000 ?

That's not a business, that's a hobby.

If going by the wages Qt pays its own developers, which is competitive in Germany, that "hobby" as you call it would be able to finance 2-3 fulltime devs. That's a small business.
> For example, imaging you are selling your company and, during due diligence, the buyer discovers you have to release your source code.

You have to do that process if you use electron… except that there you have 30000 libraries and each one of them has to be vetted and approved.

Your legal costs estimations is way off.