PDA

View Full Version : [SOLVED] qt or gtk+ for writing gui using c language?



kkantnaik
May 29th, 2012, 01:43 PM
I have wrote a simple client-server application for sharing files on a LAN network using TCP/IP sockets in C language. Now I want to add GUI to my program and after googling I was introduced to Qt and Gtk+. Since I am new to GUI I want to use any one which is simple and has good tutorials available. I also read somewhere that Qt is for KDE and Gtk+ is for Gnome, so is it possible to use Qt for developing great GUI on Ubuntu 12.04. Please give me some good advice. :D

etdsbastar
May 29th, 2012, 03:56 PM
My personal vote goes for GTK3, its awesome and you can design with glade interface designer.

Tutorials are also available for download, just google around. Search for text 'Programming with GTK filetype:pdf' and you will get lots of pdf files and book related to gtk programming.

PeterP24
May 29th, 2012, 04:24 PM
My guess is that you will find good tutorials online for both gtk and qt. Both of them are pretty well represented on the web. I only used gtk - I can only say that it is ok and that I can't make a comparison with qt. You've heard that qt is for kde and gtk is for gnome? Well, you can develop qt apps while you are on a gnome desktop environment and viceversa. The only minor stuff is that if you are on a gnome desktop environment and you want to install a kde based app then you will have to pull, besides the app itself, all sorts of kde related dependencies. This is true for the first kde app you install on that computer (which used Gnome desktop environment).

etdsbastar
May 29th, 2012, 04:29 PM
My guess is that you will find good tutorials online for both gtk and qt. Both of them are pretty well represented on the web. I only used gtk - I can only say that it is ok and that I can't make a comparison with qt. You've heard that qt is for kde and gtk is for gnome? Well, you can develop qt apps while you are on a gnome desktop environment and viceversa. The only minor stuff is that if you are on a gnome desktop environment and you want to install a kde based app then you will have to pull, besides the app itself, all sorts of kde related dependencies. This is true for the first kde app you install on that computer (which used Gnome desktop environment).


Very nice reply Peter.

kkantnaik
May 29th, 2012, 05:00 PM
I will try gtk3 then. By the way are there any significant differences between KDE and Gnome??

kkantnaik
May 29th, 2012, 05:10 PM
Thanks for replies :D

etdsbastar
May 29th, 2012, 05:22 PM
I will try gtk3 then. By the way are there any significant differences between KDE and Gnome??

Will you please explain, what do you mean by significant differences. GNOME is gnome and KDE is kde, both are different platforms, though base is same LINUX ...

ofnuts
May 29th, 2012, 08:36 PM
I also read somewhere that Qt is for KDE and Gtk+ is for GnomeNot really... Gnome uses Gtk and KDE uses Qt for their UI, but on most systems you will find both graphics libs used.

See also: http://www.wikivs.com/wiki/GTK_vs_Qt