If you're just getting started, you should check out the tutorials. If you're looking for information on specific widgets or features, consult the reference manual and widget gallery. Check our Redmine for forums, issues, and wiki.


Introduction and tutorials

If you're just getting started with Wt, these tutorials are good place to start.

Reference Manual

Use the reference documentation to see which classes and functions are included in Wt and how they should be used.


Widget Gallery

The widget gallery showcases most widgets available in Wt, with the source code to accomplish these examples. It's a good way to see what Wt has to offer and to get a feel for how these features can be used.


Choose an example:

Git explorer

This example serves as a demo for a custom model implementation which can be used by Wt's item View classes, such as WTreeView.

A WStandardItemModel can be populated with data retrieved from for example a database. A draw-back is however that all data must be retrieved in advance and is kept in session memory. By reimplementing WAbstractItemModel, you can however implement a model that reads (or computes) the data only when needed, and provides a trade-off between keeping data in memory or fetching it from the source.

In this example, we implement a tree model that navigates a git repository. The model lazy-stores folder nodes in memory, but reads all other data directly from git. Initially we thought the SHA-1 id's could be used, but folders with the same content in different places of the git repository have the same SHA-1 ID's while representing different model indexes.