News for hackers. Stuff that matters.
Re:Technical Vision for Qt 6 by pjmlp on Wednesday August 07, 2019 @01:10PM (#20636691)
For better or worse, pure C++ APIs have lost the war on GUI frameworks.

Microsoft is the only consumer OS vendor that still supports C++ for doing full stack GUI apps, everyone else moved into a mix of C++ plus managed language or layout DSL.

Re:Technical Vision for Qt 6 by Longhanks on Wednesday August 07, 2019 @04:34PM (#20638695)
Who is „everyone else“? GTK‘s primary API is C, Apple‘s is Objective C or Swift, none of them are „C++ plus managed language“, only SwiftUI is „layout DSL“ and it isn’t even released yet.

So for targeting X11/Wayland or Windows, you can bet 100% on C++, only Apple platforms do not offer native C++.

Re:Technical Vision for Qt 6 by pjmlp on Wednesday August 07, 2019 @04:54PM (#20638929)
Metal is written in C++. Try to display graphics in Objective C or Swift without Metal, going further.

Which UNIX OS SDK uses a C++ GUI full stack?

One could argue for Kubuntu or SuSE, maybe, except KDE isn't tied to a specific OS and then again it uses Qt alongside QML since Plasma, so no pure C++ stack here.

And since you missed to fully read my comment, here it is again:

> Microsoft is the only consumer OS vendor that still supports C++ for doing full stack GUI apps

Re:Technical Vision for Qt 6 by ahartmetz on Wednesday August 07, 2019 @07:02PM (#20640112)
The KDE desktop shell is QML + C++. The vast majority of KDE applications are QWidgets + C++ without QML.

I like QML but it's not that great for many / most desktop applications. It works better for creating fully custom touch UIs from scratch. The plan for Qt 6 mentions a styling API which is one of the most important missing pieces, and discussion in the comments maybe indicates more ready to use controls.

Re:Technical Vision for Qt 6 by Const-me on Wednesday August 07, 2019 @02:03PM (#20637212)
> Microsoft is the only consumer OS vendor that still supports C++ for doing full stack GUI apps

On modern Windows you have C++, and also layout DSL, specifically XAML. And that C++ is not particularly idiomatic, it’s IUnknown-derived interfaces.

If you mean windows desktop, WinAPI uses quite a few DSLs. Dialog and menu resources are the most obvious, but there’s more: WMF/EMF vector graphics format, ribbon markup XML for ribbon control, theme files…

Re:Technical Vision for Qt 6 by pjmlp on Wednesday August 07, 2019 @05:01PM (#20639012)
You are talking about Win32 legacy API, stuck in Windows XP feature level.

Modern Windows desktop UI, UWP aka WinUI, uses C++17 with a framework called C++/WinRT, that hides those IInspectable COM interfaces.

Yes there used to exit C++/CX and Windows Runtime Library, both now considered legacy and replaced by C++/WinRT.