GTK+ or Qt under Windows [closed]

2019-02-01 21:01发布

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

标签: qt gtk
10条回答
你好瞎i
2楼-- · 2019-02-01 21:47

They are both fine toolkits. I'd base my decision on the licensing. Qt requires that you pay for a license if you are using it in a commercial product wheras GTK does not.

查看更多
可以哭但决不认输i
3楼-- · 2019-02-01 21:49

GTK+ you can use almost in all programming languages, in C++ (using gtkmm) in C (gtk+) in C# (with Gtk#) in Python (PyGtk). Behind GTK you have Mono Framework which is great implementation of .NET Framework for cross platform purposes. If you want to use Gtk# you have great IDE (MonoDevelop) with a very powerful gui designer. You can take a look at www.mono-project.org. But still depends what do you want to build, you are looking just gui toolkit, or the entire framework? And the logic behind signals/slots are the same in Gtk+ and Qt, but if you are using Gtk# they are transformed in the delegates/events paradigm.

查看更多
Viruses.
4楼-- · 2019-02-01 21:50

I recommend to use Qt because:

  • It's cross-platform and and covers wide range of operating systems (including mobile)
  • It is opensource and has a fast speed in getting better
  • It has the a nice GUI designer and a very capable IDE (Qt Creator)
  • The API design is excellent and easy to use
  • It has a great documentation which is easy to read
  • It has the Qt translation system which enables you to have a multilingual app
  • The GUI layout system where the widgets resize themselves according to a layout makes everything much easier
  • The QML gives you the power to create fantastic GUI with great graphics and animations
  • It has great support for networking and connectivity(socket, SSL, www, IPC, ...)
  • It has QTestLib for testing the code
  • It has many language binding if you don't want to use C++
查看更多
来,给爷笑一个
5楼-- · 2019-02-01 21:57

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 !

查看更多
登录 后发表回答