zlacker

[parent] [thread] 6 comments
1. ogoffa+(OP)[view] [source] 2026-02-03 09:04:03
Qt is still used, but I think part of the reason it is less used is that C++ isn't always the right language anymore for building GUI application.

That’s actually why we're working on Slint (https://slint.dev): It's a cross-platform native UI toolkit where the UI layer is decoupled from the application language, so you can use Rust, JavaScript, Python, etc. for the logic depending on what fits the project better.

replies(1): >>72delu+N
2. 72delu+N[view] [source] 2026-02-03 09:11:17
>>ogoffa+(OP)
How can C++ not be the "right" language? It seems to meet all the requirements for event-driven GUIs - event handlers are function callbacks after all...
replies(1): >>ogoffa+0d
◧◩
3. ogoffa+0d[view] [source] [discussion] 2026-02-03 10:45:01
>>72delu+N
C++ works, but compared to other languages it's often no longer the most productive choice for UI work. Modern UI code is mostly glue and state management, where fast iteration matters more than squeezing out maximum performance. And when performance does matter, there are also newer, safer languages.

For teams comfortable with C++ or with existing C++ libraries to integrate, it can of course still be a strong choice, just not the preferred one for most current teams.

replies(1): >>72delu+0g
◧◩◪
4. 72delu+0g[view] [source] [discussion] 2026-02-03 11:12:20
>>ogoffa+0d
But desktop C++ isn't difficult or slow to write...

It seems odd to me that the software world has gone in the direction of "quick to write - slow to run". It should be the other way around. Things of quality (eg. paintings by Renaissance masters) took time to create, despite being quick to observe.

It also seems proven that releasing software quickly ("fast iteration") doesn't lead to quality - see how many releases of the YouTube app or Netflix there are on iOS or Android; if speedy releases are important, it is valuing rush to production over quality, much like a processed food version of edible content.

In a world that is also facing energy issues, sluggish and inefficient performance should be shunned, not welcomed?

I suppose this mentality is endemic, and why we see a raft of cruddy slow software these days, where upcoming developers ("current teams") no longer value performance over ease of their job. It can only get worse if the "it's good enough" mentality persists. It's quite sad.

replies(1): >>pitche+Qv
◧◩◪◨
5. pitche+Qv[view] [source] [discussion] 2026-02-03 12:58:49
>>72delu+0g
The part that takes time in UI isn’t wiring up components, it’s the small changes like something is a pixel to the right or that gap is two pixels wide. Changing those in a C++ project means recompiling and that adds up to significant overhead over a day of polishing the UI. If C++ was able to get builds out in less than a second, this wouldn’t be an issue. People value performance in their own tools more than the tools of their customer.
replies(2): >>rubyma+NA >>72delu+c14
◧◩◪◨⬒
6. rubyma+NA[view] [source] [discussion] 2026-02-03 13:31:45
>>pitche+Qv
In modern Qt you don't write UI in C++ anymore - you do that in QML. It is far simpler to create amazing pixel perfect UIs with drooling-inducing animations in QML. I wrote a blog post that talks a bit about this[1].

[1] https://rubymamistvalove.com/block-editor

◧◩◪◨⬒
7. 72delu+c14[view] [source] [discussion] 2026-02-04 10:11:49
>>pitche+Qv
In wxWidgets you use sizers, so you don't work on pixel-level alignments. I can understand if you're using an ancient framework like MFC, but even then I seem to recall there was a sizer equivalent system (or it is easy enough to write a class to do so, moving components).

I think it is a daft thing to move to shipping a colossal web framework and entire browser simply because of 1px UI alignments (which have been a solved problem for decades in C++ anyway).

[go to top]