SWT-like GUI toolkit for C or C++

2019-02-15 08:49发布

问题:

Do you know any cross-platform GUI toolkit like swt for C (using default widgets in each operating system = right pics on eclipse.org/swt) ? There is an implementation of swt for D language called DWT but I need it for C or C++. Thanks.

回答1:

  1. Qt (community)
  2. wxWidgets
  3. FLTK
  4. GTK+
  5. FOX
  6. Notus
  7. VCF - EDIT2 seems to be inactive for a few years

You can read some details in that wiki.
First 4 are pretty popular, the rest I dont know.

EDIT:
8. There is C++ port but it seem Windows only for now
9. SWT/Fox - C++ port on top of FOX toolkit - seems to be dead for more then 3 years
10. Also you can try .NET + Mono. But not for commercial project, I think

Qt, FLTK and GTK+ use their own widgets system, i.e. they replace native windows, buttons, etc. Whereas wxWidgets provides a layer on top of native system. Hence:

  • with wxWidgets you get 100% native look&feel on every platform without any effort.
    CON - you get native bugs too :). Different behaviour could be undesirable
  • At least Qt can emulate native look&feel (some people say it is not perfect on MacOS X). Also KDE is written in Qt, so for KDE desktops Qt is native

EDIT2:
Just found this really extensive list of widget toolkits on wikipedia



回答2:

The qt framework provides crossplatform functionality: http://qt.nokia.com/products



回答3:

Take a look of wxWidgets.