Alex Rivera | Logout

GTK+ or Qt under Windows

Asked 2008-10-14T00:44:46.223
24

I was wondering which one should I consider if I need the software to be used on both platforms, WIN and Linux and why?

Edit
Report

2 Answers

14

Both are good toolkits that have their advantages and disadvantages.

One difference is the implementation language. Qt is in C++, and GTK+ is in C. However GTK+ has bindings for many, many other languages (perl, python, C++, .NET, etc) so it's not a huge issue.

An Advantage of Qt is that it offers a bit broader range of functionality built in (xml, database access, network programming, openGL, etc). GTK+ has basically all of these things within its orbit (e.g. libxml2, librsvg, libsoup, libgda, etc), but they're not as much of a single coherent package as Qt is.

My personal recommendation is to use gtkmm, the C++ bindings for GTK+. It offers a more comfortable object-oriented language to program in, and it provides nearly the same native performance as using GTK+ from C. (Disclaimer: I contribute to gtkmm).

answered 2008-10-14T01:27:36.853
2

Qt 5.0 has won the war. I'm not a huge fan of C++ (I prefer plain old C), but I must admit that the Qt framework is amazing. Try to write a GUI program with GTK that runs on OSX, Linux, Windows (and soon iOS and Android) with native look-and-feel... Good luck !

answered 2013-01-25T23:06:02.703

Your Answer