Thread 105782605 - /g/ [Archived: 621 hours ago]

Anonymous
7/3/2025, 1:22:42 AM No.105782605
gtk_vs_qt
gtk_vs_qt
md5: 2dcd5311a1a7965cf0bd9aff08732cf7🔍
GTK vs Qt

IMO GTK is freetard crap but used to be good with GTK2 / 3. Now it's getting worse: GTK4 / libadwaita. They constantly overhaul UI between major versions. It depends on a bunch of small no-name libraries.

Qt continues to improve and not break UI. The transition from Qt5 to Qt6 has no visual change. It has a standard Windows-like look-and-feel and is used by major companies on all platforms. It uses C++ instead of reinventing it (GObject.)
Replies: >>105782642 >>105782867 >>105782927 >>105782968 >>105783009 >>105784612 >>105785044 >>105785813 >>105785868 >>105786748 >>105787242 >>105788882
Anonymous
7/3/2025, 1:24:46 AM No.105782627
I use Qt. There's not really any other option worth using for cross platform shit.
Anonymous
7/3/2025, 1:26:17 AM No.105782642
>>105782605 (OP)
Wrong, GTK was never good and QT is not standard C++, I guess they will remove those ugly macros (like Q_OBJECT) in C++23 (in 20 years or something)
Replies: >>105784131
Anonymous
7/3/2025, 1:30:46 AM No.105782676
GTK is still plain old C which I prefer over C++.
Replies: >>105782686 >>105782689
Anonymous
7/3/2025, 1:31:57 AM No.105782686
GTK was crap in 3 too and even 2 wasn't that great.
Qt is kind of bloated and overcomplicated for development but it's the best we've got.
If it was something really big and important like a desktop environment I'd just make my own thing.
>>105782676
This, even if you plan on developing the actual app in C++ it's good to have a C base library.
Anonymous
7/3/2025, 1:32:05 AM No.105782687
Gtk 2 is ok, past that I won't use either.
Anonymous
7/3/2025, 1:32:08 AM No.105782689
>>105782676
i thought gtk3 and gtk4 is c++
Anonymous
7/3/2025, 1:52:08 AM No.105782867
>>105782605 (OP)
GTK 4 is actually great and I will redpill you.
>overhaul UI
GNOME moved their crap to libadwaita, so GTK is just generic now and has stable classes for theming. Mint can write GTK 4 themes and they won't break plus GNOME won't touch GTK styles anymore.
>performance
GTK 4 uses Vulkan for rendering. GPU everything, less CPU cycles, faster rendering.
Default widgets have been optimized and rewritten from 0 https://blog.gtk.org/2020/09/05/a-primer-on-gtklistview/
>features
it supports both CSD and SSD (developer chooses), it supports fractional scaling, it supports setting different font rendering settings. Only toolkit that supports WebKit.
>bloat
it's a minimal toolkit, no Qt Websocket widgets and other bs paid widgets (why does a GUI toolkit do websockets?). QtWebEngine is literally an old insecure embeded Chromium, Falkon browser is many versions BEHIND on security.
>support
GTK major versions are kept alive for decades. GTK 3 is still maintained. Qt kills versions between minor releases. OBS depends on deprecated versions because newer ones keep breaking it every time they catch up.
>C
C bindings for every language out there. Nobody likes C++.
>company
Qt is entirely developed by Trolltech. KDE deals with bugs like the volume picker freaking out and krashing and they can't fix it. They reply with "Qt needs to fix it, wait". You are putting all your eggs in one basket.
>but GTK is made by GNOME
GTK is tiny compared to Qt, you can fix shit yourself, C is simple. Ardour, a GTK 2 DAW, maintains its own fork of GTK 2 because it's so easy.
Replies: >>105783022 >>105783056 >>105783093 >>105784333 >>105785813 >>105786081
Anonymous
7/3/2025, 1:59:23 AM No.105782927
>>105782605 (OP)
I've stuck with GTK3. The tooling (i.e. GLib, GObject, GIR) is extremely good. There are many libraries that integrate nicely with the GLib event loop. There are many language bindings for GTK. I prefer C over C++ so Qt is automatically not an option for me.
Anonymous
7/3/2025, 2:04:53 AM No.105782968
>>105782605 (OP)
Is it possible to not use gtk at all? I guess with a simple wm you could ignore most of it, but I think even installing Firefox would require it.
Anonymous
7/3/2025, 2:10:23 AM No.105783009
ptsd
ptsd
md5: b514f1c784ed4e1d26d568194667615e🔍
>>105782605 (OP)
GTK4 is better than GTK3.
Anonymous
7/3/2025, 2:12:54 AM No.105783022
>>105782867
Not op but I'll admit it. I fucking despise GNOME and think their default style is hideous. But I can't find anything wrong with anything in this post.
I'd still make my own toolkit for a desktop environment though.
Anonymous
7/3/2025, 2:16:53 AM No.105783056
>>105782867
The only thing I dislike about GTK4 is that it's only partially supportive of non-composited display servers.
If you open a window on a basic X11 session, you get solid corners to account for the lack of alpha rendering, but as soon as you open a pop-up, you get black borders.
Either support it or don't. This teasing is annoying.
Anonymous
7/3/2025, 2:21:46 AM No.105783093
jakub steiner
jakub steiner
md5: 71df15b0fe307f23c993ec6916700f77🔍
>>105782867
>GNOME won't touch GTK styles anymore.
>>performance
Too bad they will touch GTK icons whenever they get the chance.
The GTK 3 widget demo is broken on the latest upstream versions. You get a mishmash of symbolic and regular icons because some of them are missing from the Adwaita icon package. You can't rely on AdwaitaLegacy either as it doesn't ship symbolic icons for some reason.
Replies: >>105783143
Anonymous
7/3/2025, 2:27:21 AM No.105783143
>>105783093
you can set your own icon theme anon
Replies: >>105783193
Anonymous
7/3/2025, 2:28:16 AM No.105783146
qt5 is so shit, it's unreal. qt6 is an absolute GODSEND.
Anonymous
7/3/2025, 2:35:44 AM No.105783193
>>105783143
That just compromises actual GNOME apps that are deeply integrated with upstream Adwaita icons and the desktop.
It's weird that they even allow icon theming when stylesheets are locked down.
Anonymous
7/3/2025, 2:38:37 AM No.105783213
Also invented by Trolltech
Anonymous
7/3/2025, 2:40:49 AM No.105783228
Gtk4 is best it's ever been, you are just a troon
Replies: >>105783232
Anonymous
7/3/2025, 2:41:50 AM No.105783232
>>105783228
>Gnome Troonkit calling anyone a troon
lmao
Replies: >>105783249
Anonymous
7/3/2025, 2:44:19 AM No.105783249
1747015039882076
1747015039882076
md5: 504fcafdcc3492988cca7c20d09f8353🔍
>>105783232
Seethe jew
Replies: >>105783279 >>105784407
Anonymous
7/3/2025, 2:47:45 AM No.105783279
>>105783249
Ebussy isn't even that obnoxious for GNOME standards. He is more than capable of posting intelligent talking points once in a while.
Sebastian Wick is on a whole different level, and even Freedesktop got tired of him and issued a ban.
Anonymous
7/3/2025, 4:42:54 AM No.105784131
>>105782642
C++ standards attempt to do everything at compile time, but Qt requires dynamism; thus, macros and MOC are necessary.
Replies: >>105793255
Anonymous
7/3/2025, 5:11:00 AM No.105784333
>>105782867
I have tried to create plugins UI for ardour in gtk, but It have to be made in GTK2 to work and if new ardour version come using GTK3 my UI will not work...
Anonymous
7/3/2025, 5:21:46 AM No.105784407
>>105783249
Kek, based Ebussy.
Anonymous
7/3/2025, 5:50:00 AM No.105784612
>>105782605 (OP)
Qt is evil and proprietary. GTK are the good guys and they are FOSS. Now you can shut the fuck up. Oh, and tell the Qt company to buy an ad next time.
Anonymous
7/3/2025, 7:03:15 AM No.105785044
>>105782605 (OP)
cuck license
Anonymous
7/3/2025, 9:14:56 AM No.105785813
>>105782867
>GTK is tiny compared to Qt
Who's bigger, the qt company or RedHat?
and read this then cry:
>>105782605 (OP)
>The transition from Qt5 to Qt6 has no visual change.
Anonymous
7/3/2025, 9:22:55 AM No.105785868
>>105782605 (OP)
While I like Qt more, the fact that it's written in C++ makes it cumbersome to port to other languages whereas GTK has bindings for basically every language under the sun.
Anonymous
7/3/2025, 10:01:08 AM No.105786081
>>105782867
We have a RedHat shill!
>it supports both CSD and SSD
no it doesn't fucktard
>Default widgets have been optimized and rewritten from 0
and renamed or deprecated in the process, also in which world does optimizing mean using MORE resources?
>C
Qt now has C bindings, nigger

I could go on. Fuck you redhatnigger, fuck ebussy and fuck gnome.
Replies: >>105786674 >>105786741 >>105787922 >>105793141 >>105793255
Anonymous
7/3/2025, 11:43:17 AM No.105786674
>>105786081
>no it doesn't fucktard
Nocoder schizo speaking, listen and learn
https://docs.gtk.org/gtk4/method.Window.set_decorated.html
>and renamed or deprecated in the process
depreciation in GTK means "it will work until the next major version" which is not even an idea yet
renaming is necessary when deprecating as ro not break existing uses, again nocoder
>optimizing mean using MORE resources?
Incapable of reading? The blog describes recycling view lists.
>Qt now has C bindings
GTK has a system called introspection which allows automating binding to other languages from C. Qt's C bindings suck ass and cannot be used as an intermediate for binding to other languages. You never used either have you?
>Please trolltech, step on me
Anonymous
7/3/2025, 11:51:24 AM No.105786741
>>105786081
>no it doesn't fucktard
NTA but gimp supports both
Anonymous
7/3/2025, 11:52:04 AM No.105786748
>>105782605 (OP)
GTK just because of the loicence
Anonymous
7/3/2025, 1:03:38 PM No.105787242
>>105782605 (OP)
Maybe both.
Personally on my linux is gnome classic.
In the past a few employments I always encountered qt a never gtk.
Anonymous
7/3/2025, 2:25:22 PM No.105787922
>>105786081
Imbecile.

https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gdk/wayland/protocol/server-decoration.xml
Replies: >>105788852
Anonymous
7/3/2025, 3:01:28 PM No.105788228
Anyone use CopperSpice? It's a full blown fork of Qt that removes gay shit like the MOC and relies solely on modern C++ features. It's also freer for u freetards.
Anonymous
7/3/2025, 4:06:30 PM No.105788852
>>105787922
>/wayland/protocol/
irrelevant, no use case
Replies: >>105791295
Anonymous
7/3/2025, 4:09:12 PM No.105788882
>>105782605 (OP)
I like qt but I hate that qt feels kind of bloated and I hate qstring bullshit.
Anonymous
7/3/2025, 8:08:18 PM No.105791295
>>105788852
Anonymous
7/3/2025, 8:48:13 PM No.105791699
for me it's tcl/tk
Anonymous
7/3/2025, 11:29:52 PM No.105793141
>>105786081
>Qt now has C bindings
Sauce?
Anonymous
7/3/2025, 11:45:08 PM No.105793255
videoframe_217425
videoframe_217425
md5: 31a13ca20818df8230363c7335257718🔍
>>105784131
They will add compile time reflection in C++23.

>>105786081
>Qt now has C bindings, nigger
It doesn't. But you can use QML + C, you can't have proper 1 to 1 API level bindings.
Replies: >>105795128
Anonymous
7/4/2025, 4:07:15 AM No.105795103
Reminder that GTK5 is removing theming and X11 support.
GTK4EVER
Anonymous
7/4/2025, 4:11:56 AM No.105795128
>>105793255
> They will add compile time reflection in C++23
I am willing to bet its implemented in the worst way possible, having hideous syntax whilst being crippled and barely useful