Examples
Explore some live examples of Wt below.
The source code of these (and many more) examples is included in the Wt source distribution. You may also browse through the source code of each example using the source code viewer, following the link below each example.
Cross-linked source code for these examples is also in doxygen documentation (in a new window).
Charts example
This example demonstrates the Wt charting widgets that are implemented on top of Wt's cross-browser painting API. This painting API uses built-in browser support for generating high quality graphics. Depending on the browser, inline VML, inline SVG, HTML5 canvas, or a PNG image is used to render painted contents in a WPaintedWidget.
This example also demonstrates how a Model can be shared by several Views, and pass modification events to each connected View. The table view and the chart implement a View on the same item model.