Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Small native cross-platform GUI framework for C++

I wrote a small program with Boost in c++. It works fine and so I want to give it a graphical interface so that it is easier to use.
In order to do so, I am looking for small cross-platform framework which provides native look and feel. Windows and Linux support would be enough, currently i do not need os x...

I used wxWidgets for some other project, but it was a pain to set everything up and ship this big library with the software.
But I was really amazed by the use of real native controls. In order to keep the program small I also tried fltk, but it has an awful look.

I just need an simple framework without network support or other gimmicks.

So my question: Is there any framework out there which fits all the requirements? Or if not, which frameworks fits at least some of these needs?

Thanks in advance!

like image 843
tbolender Avatar asked Nov 29 '10 19:11

tbolender


People also ask

Which is the best GUI for C?

GTK is a popular GUI that works with C .

What is a cross-platform GUI?

August 4, 2022. A cross-platform GUI is a great tool for designing apps and software that can run seamlessly on: Android, iOS, macOS, Windows, and Linux. So why create apps for different platforms when you can make one for all in less effort and expense?

Is wxWidgets better than QT?

It's true, QT has some widgets that could not be found int the target OS, and that is QT's objective, in the other hand wxWidgets provides all the native OS widgets, if you need a widget not available in the target OS you can implement it on top of wxWidgets and then your widget will be cross-platform (i have done it ...

Is QT best for GUI?

Qt for Python is one of the best GUI framework available for Python. We can build standard desktop GUI applications but the framework also comes with a lot of features such as data visualization or OpenGL support. The developer tools available are another powerful feature of the framework.


2 Answers

When it has the word "framework" in its name it's almost never small.

Anyway, graphical frameworks/libraries tend to be big, cause they need to handle a lot of stuff.

Qt is probably the best straightforward library for cross-platform GUI, but it definitely doesn't constitute a "small framework". On the other hand, on Linux systems, Qt will be most likely already installed. Plus it definitely pays for its size.

like image 144
Šimon Tóth Avatar answered Oct 07 '22 04:10

Šimon Tóth


wxwidgets is fairly small as far as gui toolkits go.

And it's cross platform

http://www.wxwidgets.org/

You have mentioned it, but as far as cross platform toolkits go it's one of the smallest I've seen.

The only other suggestion I have is that you could wrap your code up into a C library and link that into another language. e.g. Use .NET on windows and mono for linux or even a java based app (although they don't always look very native to the platform). Then use your library from there.

like image 20
hookenz Avatar answered Oct 07 '22 06:10

hookenz