I assume you mean one native standard... per platform.
But this is the core problem, being both native and cross platform is a nightmare. The Qt solution was the best: emulate each native look on top of a general purpose abstraction. It's easier for everyone if "MacOS" look is just a display option, even if you're running on Windows or Linux.
Well its always gonna be an issue cant really pack the vm with all the dependencies from the factory and the dev cant really know where and in what configuration someone might try to run their code.
I didn't use Qt much back then, but wasn't it using Qt Widgets at that time? Those weren't native either iirc, they just mimicked native styles. QML (4.7+) completely does it's own thing, similar to a game engine, so they feel completely unique
What's wrong with XAML? It's literally just HTML with different layouting. I on the opposite can't use HTML now because I like Avalonia's layout system much more, I don't need to put divs everywhere.
Note that layouting system is probably less obvious (to understand for newbies) in code-only, you'll be better to use XAML at least for start until you'll grasp, but if you want a C# cross-platform UI library, there is nothing better for now. Uno has worse documentation and less mature, but you can still try it.
Yeah really feels like you’re searching for qt widgets or maybe wxwidgets (though qt comes with tons of extra abstractions that help with cross platform code)
I've never tried avalonia, but xaml is easier for me to read than html, and easier to make it look like the mock. Html is just div this and that with a bit of flexing, how am I supposed to guess what it looks like by just reading that
Yea there was a package for building code based ui, like jetpack, but afaik it was abandoned. I really like to work with avalonia tho, for me the ability to easily layout stuff far outweighs anything html+css can do.
Honestly I'm really not a big fan of qt, maybe I just had bad experiences with it but I'd much rather Maui, getting to utilize c# first class event handlers and async operations vs qt slots and signals and such is just so much better
Yeah, I mean it definitely is, although some of it's also a qt issue, like there are a lot of memory safe, or other advance functionalities qt added that then got added in future c++ standards, but qt insists you use their setup for it, rather than the now almost ubiquitously available (at least on any platform you are going to run qt) c++ standard objects
Kotlin multiplatform with compose multiplatform is quite good at multiplatform support, having logic and UI in one but also be able to use platform specific code.
The only downside is that accessibility is not well-supported yet in Compose Desktop, and I'm not entirely sure things like translations work properly on all desktop targets.
For localization, I use the library com.hyperether.localization
In my example project, there is a description on how to use the lib and there is a languagechooser you can use in your project. https://github.com/julianegner/coshanu This is under MIT license, so you can use code parts anywhere.
It isn't as long as you provide the native support for each platform, which many stacks do. Golang, Rust all build native binaries from the same codebase, making it cross platform. Qt provides cross-platform bindings for platform-native GUI.
it's impossible to make a truly crossplatform executable because different platforms use fundamentally different executable formats. also who even uses BIOS anymore
The cosmopolitan project uses a "clever" trick that makes the first bytes both valid PE and a valid shell script which then uses a loader that can read the ELF bytes that are further down the file and execute only the content starting at the ELF bytes.
Originally it used an approach where the shell script rewrites the first bytes to be valid elf and then reexecutes itself but that means that once the executable ran on Linux, it was no longer multiplatform executable.
So no truly a Linux executable, but it will run on both Linux and Windows.
It seems simple until you realize such a framework needs to work across at least 5 OS, at least three CPU architectures, at least four different file systems with one pair working very differently from the other pair, at least three different permission structures and support three different input devices. And that is just the major operating systems, there is also consoles, wearables, and real time systems.
Now it might just be possible now but it requires an LLM to translate your intent into native code for the 5 OSes.
Eeeeh, it depends on your definition I guess. It's either (L)GPL, so you can't really use it for something proprietary, or you need to pay a license. Now when people are talking about open-source, they're often talking about permissive licenses, which Qt doesn't use.
Personally, I find the Qt model pretty smart. It gives the tools for free to build better free apps while securing funding, which is a huge issue in the FOSS community
When people talk about open source, they generally mean OSI approved licenses or about Free Software licenses (people tend to conflate those).
GPL is the most well known of those. And LGPL allows writing proprietary code, you just basically have to let the users replace the LGPL parts. Which is easy for non-static builds because it comes as a .so/.dll/whatever-mac-uses anyway.
The GPL parts are unusable in non-open-source projects, though.
But LGPL does allow for proprietary software using it since it's not viral, right? you'd need to share modifications made to qt itself but not the entire software
I used Qt (for my hobby project tho) and found it to be much easier than doing dart/java/js and juggling ffi etc. (but I can't say anything about the maintenance of a production app, though telegram is Qt on all platforms ig)
815
u/EducationalNinja9361 Sep 08 '26
Upvote for not being about AI
214
u/Fantastic-Fee-1999 Sep 08 '26
Sure, can we have one unified native standard first?
192
u/KronktheKronk Sep 08 '26
As long as there are multiple platforms you can't possibly be cross-platform and native
34
u/iyamegg Sep 08 '26
Avalonia?
6
u/mixxituk Sep 08 '26
Unity?
5
u/JackNotOLantern Sep 08 '26
Yeah, it's called binary
124
u/KerPop42 Sep 08 '26
developing a universal cross-platform framework is how you get stuck with Javascript hegemony for 3 decades
19
u/not_some_username Sep 08 '26
Qt ?
22
u/B_bI_L Sep 08 '26
flutter
also .wad, considering that doom runs on anything
9
u/CptGia Sep 08 '26
Did someone say "Write once, run everywhere"?
16
u/je386 Sep 08 '26
Kotlin multiplatform with compose multiplatform is quite good at multiplatform support, having logic and UI in one but also be able to use platform specific code.
4
u/rbbdk Sep 08 '26
The closest thing I've seen so far - TCL/Tk.
4
u/OddEstimate1627 Sep 09 '26
JavaFX compiles to native executables on all 5 platforms
6
u/Sea-Fishing4699 Sep 08 '26
native and cross-platform is kinda mutually exclusive
3
u/WolfDK Sep 08 '26
Ever heard of Uno Platform? Afaik it is capable of being a truely cross platform native frontend framework.
3
u/Skibur1 Sep 08 '26
Where’s flutter?
3
u/chemolz9 Sep 08 '26
Flutter?
4
u/iliark Sep 08 '26
cosmopolitan
one binary can run on linux, mac, windows, bsd, and BIOS without a VM.
2
u/bitsydoge Sep 08 '26
KMP is the way
2
u/meutzitzu Sep 09 '26
WxWidgets bro
2
u/VailxN Sep 09 '26
Implement this UI natively on both iOS and Android, make no mistakes
2
u/yes_no_very_good Sep 09 '26
Cross Platform and Native in the same sentence?
2
u/Zapismeta Sep 10 '26
How can it be native and cross paltform? Genuine question.
1
u/Gold-Bat-3225 Sep 08 '26
The 🙏🏻 is doing all the engineering
1
u/stupled Sep 08 '26
What if everything is done is assembler? Would thar work?
1
u/Moscato359 Sep 09 '26
Surprisingly c#/dotnet is incredibly cross platform and I use it for Linux software all the damn time
1
u/rover_G Sep 09 '26
If you want cross-platform it will be slow. If you want it fast gotta go platform-native.
1
u/meutzitzu Sep 09 '26
Dear ImGui
1
u/Dull_Barracuda_4221 Sep 09 '26
Fix all my issues,
Proceeds to delete all files as the saying goes, no files, no issues
1
u/OffByOneErrorz Sep 09 '26
The mono project compiled to native at least the non forms version. https://en.wikipedia.org/wiki/Xamarin
1
u/Miiohau Sep 09 '26
It seems simple until you realize such a framework needs to work across at least 5 OS, at least three CPU architectures, at least four different file systems with one pair working very differently from the other pair, at least three different permission structures and support three different input devices. And that is just the major operating systems, there is also consoles, wearables, and real time systems.
Now it might just be possible now but it requires an LLM to translate your intent into native code for the 5 OSes.
1
u/vitimiti Sep 09 '26
SDL3 supports practically everything you'll find, and if it's about just UI, Qt is both native and cross platform, including IoT
1
u/hi_m_ash Sep 09 '26
There will never be a cross platform native framework because every platform wants to be special with their own design philosophies and ecosystem.
1
u/Xywzel Sep 09 '26
If its on top of a framework, is it even a native? Or is it about the framework being native, rather than the software running on top of it.
1
u/Fitnexa_Results Sep 09 '26
That missing question mark in `howHardCanItBe` is pulling a lot of weight.
1
u/kartblanch Sep 09 '26
Pc is the only way forward
1
u/gabboman Sep 14 '26
Unity
1
u/markvii_dev Sep 09 '26
Kotlin Multiplatform is a clear winner here
-1
u/cyxlone Sep 09 '26
Kotlin Multi Platform
85
u/[deleted] Sep 08 '26
[removed] — view removed comment
36
u/[deleted] Sep 08 '26 edited 19d ago
[removed] — view removed comment