QT vs GTK, what are they and what's the difference?

Chat about Linux in general

QT vs GTK, what are they and what's the difference?

Postby Punchy71 on Thu Jun 05, 2014 9:32 am

Greetings,
What are "QT applications", and why is there a "big wave of them we're about to see over the next few years" (as reported by someone on YouTube who was reviewing the new LXQT desktop environment)? How do they compare to GTK apps?

Thanks
Punchy71
Level 1
Level 1
 
Posts: 46
Joined: Tue Aug 21, 2012 6:48 pm

Linux Mint is funded by ads and donations.
 

Re: QT vs GTK, what are they and what's the difference?

Postby Reorx on Thu Jun 05, 2014 11:19 am

LXQT is the next generation of LXDE the Lightweight X11 Desktop Environment... The initial release of LXQT was about a month ago and as such it is the new kid on the block... Like most new DEs, if it is popular, it will see rampted up development efforts and it (and apps developed for it) will grow rapidly - think of what has happened in the 2.5 years since the first version of Cinnamon was released... (Cinnamon is or at least was GTK+ based)
Last edited by Reorx on Thu Jun 05, 2014 11:21 am, edited 1 time in total.
Procrastinate now!
User avatar
Reorx
Level 6
Level 6
 
Posts: 1469
Joined: Tue Jul 07, 2009 7:14 pm
Location: SE Florida, USA

Re: QT vs GTK, what are they and what's the difference?

Postby memilanuk on Thu Jun 05, 2014 11:20 am

Qt and GTK are different and competing GUI libraries (arguably Qt is more of a full framework). Qt is arguably more capable, but if memory serves license issues in the distant past led to Gnome/GTK becoming more prevalent in the Linux world for a time. Those issues are long past, and it looks like Qt5 is bringing a lot to the table while GTK may be faltering a bit.

This wikivs article might be of interest:

http://www.wikivs.com/wiki/GTK_vs_Qt
memilanuk
Level 1
Level 1
 
Posts: 31
Joined: Sat Dec 04, 2010 5:27 pm

Re: QT vs GTK, what are they and what's the difference?

Postby xenopeek on Thu Jun 05, 2014 11:58 am

Moved here as this isn't specific to Linux Mint.

Qt (pronounced "cute") and Gtk are application frameworks. Basically libraries that developers can use to build graphical applications. There are other application frameworks for Linux, like EFL, but probably Qt and GTK are the most used. There are also applications that don't use an application framework, and have their own code for building a graphical application (like IIIRC right now Chromium and Google Chrome).

Regardless of what desktop environment you use (e.g., Cinnamon, KDE, MATE, Xfce) you can use any graphical applications--independent of what application framework they use. Historically, most of the applications you use on Cinnamon, MATE, and Xfce are Gtk based while most applications you use on KDE are Qt based. But VLC for example is a Qt application, and it works just fine on Cinnamon, MATE, and Xfce. The Mint tools are all Gtk applications, but work fine on KDE. No biggy.

Linux users gossip and speculate too much, and they do love them their various wars and controversies :) (I'm guilty of it also.) If it isn't a distro war (Ubuntu vs Debian vs Mint), it's a desktop environment war (classically, Gnome vs KDE), or a application framework war (right here! Qt vs Gtk), or a display server war (X vs Wayland vs Mir). Don't attach too much value to it...

The LXDE and Razor-Qt projects merged and their future desktop environment releases are called LXQT and will migrate from using Gtk in their applications to Qt. For sure like on KDE you'll find that Linux distributions will favor to include Qt applications with it--but with LXDE/LXQT not even being in the top 10 of most used desktop environments and window managers, you should question anybody making a statement that this means anything for Gtk.

In any case, if you are a programmer look at both and decide for yourself which you like best. If you are a user, don't think too much on it--you can use applications written for either Gtk or Qt on your computer :wink: There are many awesome applications written for both...
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14987
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands


Return to Chat about Linux

Who is online

Users browsing this forum: No registered users and 4 guests