Version: 3.1.0
Introduction

What is wxWidgets?

wxWidgets is an open source C++ framework allowing to write cross-platform GUI applications with native look and feel in C++ and other languages.

wxWidgets was originally developed by Julian Smart at the Artificial Intelligence Applications Institute, University of Edinburgh, for internal use, and was first made publicly available in 1992, with a vastly improved version 2 released in 1999. The last major version of the library is 3 and was released in 2013. Currently wxWidgets is developed and maintained by Julian Smart, Vadim Zeitlin, Stefan Csomor, Robert Roebling, Vaclav Slavik and many others.

More information about wxWidgets is available on its web site at http://www.wxwidgets.org.

Why choose wxWidgets?

Compared to the other similar libraries, wxWidgets is:

  1. The only C++ GUI library built by wrapping native GUI widgets which results in the best user experience on each platform.
  2. Written using only the standard C++ and doesn't rely on any custom extensions or preprocessing.
  3. Open source and free for use in both open source and commercial projects.

wxWidgets provides a simple, easy to learn, yet very rich API. It is also mature and stable, and the applications written using wxWidgets 2.0 pre-releases almost 20 years ago can still be built today with wxWidgets 3 almost unchanged. wxWidgets has a large, active and friendly community of people, including both the users and developers of the library. It is also available now for more than a dozen other languages, including Python, Perl, Ruby, Lua, Haskell, D, Erlang, PHP, in addition to C++.

It is impossible to sum up everything included in wxWidgets in a few paragraphs, but here are some of the benefits:

  • Available on all major desktop platforms.
  • Free for any use.
  • Source is available and easy to read and modify if necessary.
  • Over 100 example programs.
  • Extensive documentation (almost 200,000 lines of it).
  • Straightforward API.
  • Simple but powerful layout system.
  • Run-time loadable or compile-time embeddable resources.
  • Flexible event system.
  • All the usual and quite a few of more rare GUI controls.
  • And also all the standard dialogs.
  • 2D path-based drawing API with full support for transparency.
  • Built-in support for many file formats (BMP, PNG, JPEG, GIF, XPM, PNM, PCX, TGA, ...).
  • Printing, help, clipboard, drag-and-drop, document/view, ... support.
  • Integration with the native platform HTML rendering engine.
  • Dockable windows framework.
  • Word processor-like widget.
  • Powerful text editing widget with syntax highlighting.
  • And much, much more...

wxWidgets Requirements

wxWidgets first-tier "ports", ie implementations of wxWidgets API, are:

  • wxMSW: This is the native port for Microsoft Windows systems (from Windows 95 up to Windows 8.1 with at least Windows XP being recommended), either 32 or 64 bits. The primarily supported compilers are Microsoft Visual C++ (versions 6 up to 2013 are supported, at least 2005 is recommended) and GNU g++ (either from the traditional MinGW, TDM-GCC or MinGW-w64 distributions).
  • wxGTK: wxGTK2 and wxGTK3 are the ports using GTK+ library version 2.x and 3.x respectively. They are very similar, with wxGTK2 being, however, more mature. Both ports work on almost any Unix system (Linux, FreeBSD, OpenBSD, NetBSD, Solaris, AIX, ...) and require GTK+ 2.6 or later or GTK+ 3.x. The primary supported compiler is GNU g++.
  • wxOSX: wxOSX/Cocoa is the primary port for Apple computers, replacing the older and now deprecated wxOSX/Carbon port. wxOSX supports either PowerPC or Intel Macs running OS X 10.5 or higher and can be compiled in either 32 or 64 bits using Apple Developer Tools (both GNU g++ and clang are supported).

Other platforms (iOS, Windows CE, OS/2), compilers (Borland C++ under Windows, Sun CC, HP-UX aCC, IBM xlC or SGI mipsPro under Unix) and ports (wxOSX/Carbon, wxGTK1, wxX11, wxDFB, wxPM...) are also supported but to a lesser extent. Please see the platform details page for more information.

There are no CPU speed requirements but the faster (and more) CPU(s) you have, the faster the library will compile. You do need to have enough RAM, especially under Windows platforms, to avoid running out of memory during link phase. Depending on the compiler used, you may need at least 4GB to be able to link. Under all platforms it's recommended to have large amounts of free hard disk space. The exact amount needed depends on the port, compiler and build configurations but at least 1GB and possibly more is required.

Where to get wxWidgets and support for it

The download links can be found at http://www.wxwidgets.org. The primary download location is https://sourceforge.net/downloads/wxwindows/ and there is also an FTP mirror at ftp://ftp.wxwidgets.org/pub/. Additionally, the latest version can always be retrieved from our version control system using either Subversion (http://svn.wxwidgets.org/svn/wx/wxWidgets/) or Git (https://github.com/wxWidgets/wxWidgets).

wxWidgets documentation that you are reading is also available online at http://docs.wxwidgets.org/trunk/ and please also visit our wiki at http://wiki.wxwidgets.org/ for user-contributed contents.

And if you have any questions, you can join wxWidgets community using