GUI for beginners C ++

With several years of experience with Java, I decided it was time to spend time and learn C ++. I just compiled and launched my first C ++ with eclipse (of course) and would like to do it one step fw - I want to create a GUI.

Question: which graphical interfaces are available for C ++, what is open source and works on Mac and eclipse.

+4
source share
4 answers

Some mentioned Qt, some wxWidgets.

A quick summary of gui cross-platform kits that you could try:

  • Qt : It looks appropriate on the platform on which you use it. However, he has his own build system, which does not always like to play well with others. If you want newbies to have experience creating a GUI with Qt, I recommend Qt Creator . This is a standalone IDE created by Qt developers.
  • wxWidgets : While Qt looks native (it tries to best mimic the appearance of the OS you are running on). wxWidgets is native. That is, it uses the GUI elements provided by the operating system. Recently, I looked at wxWidgets, as the C ++ library lagged behind modern development methods. Perhaps you will probably learn about the bad programming habits from this library.
  • gtkmm : These are the same guys that do GIMP and Gnome, which, as a MacOS user, probably don't mean much to you. They don't really try to fit into wxWidgets and Qt. However, they probably have the most modern C ++ library. They did a great job of using modern development methods in C ++. This may be useful for a new programmer, as you are less likely to learn bad habits from them. On the other hand, you will fall into the land of templates and function pointers, etc.

Those are the largest with the greatest momentum behind them. There are many others that should also be considered.

+6
source

I would recommend Qt , which is open source, has an easy-to-use API with a GUI designer, and can be used on many operating systems (Windows, Mac, Linux ..) and looks at the same level as on it.

+3
source

You can take a look at wxWidgets or Qt:

http://www.wxwidgets.org

http://qt.nokia.com/products/

More generally, see here:

http://en.wikipedia.org/wiki/List_of_widget_toolkits#Based_on_C_or_C.2B.2B_.28including_bindings_to_other_languages.29

I personally used wxWidgets and found it to be nice if you are following a recommendation.

+2
source

Source: https://habr.com/ru/post/1391042/


All Articles