• Basics
    • WContainerWidget
    • WTemplate
    • WText
    • WAnchor
    • WBreak
    • WImage
    • WGroupBox
    • WStackedWidget
    • WTable
    • WMenu
    • WTree
    • WTreeTable
    • WPanel
    • WTabWidget
    • WProgressBar
  • Form Widgets
    • WPushButton
    • WCheckBox
    • WRadioButton
    • WComboBox
    • WSelectionBox
    • WLineEdit
    • WSpinBox
    • WTextArea
    • WCalendar
    • WDatePicker
    • WInPlaceEdit
    • WSuggestionPopup
    • WTextEdit
    • WFileUpload
    • WPopupMenu
  • Form Validators
  • Ext Widgets
    • Ext::Button
    • Ext::LineEdit
    • Ext::NumberField
    • Ext::CheckBox
    • Ext::ComboBox
    • Ext::RadioButton
    • Ext::Calendar
    • Ext::DateField
    • Ext::Menu/ToolBar
    • Ext::Dialog
  • Vector Graphics
    • Emweb logo example
    • Paintbrush example
  • Special Purpose
    • WGoogleMap
    • WMediaPlayer
    • WSound
    • WVideo
    • WAudio
    • WFlashObject
  • Dialogs
    • WDialog
    • WMessageBox
    • Ext Dialogs
  • Charts
    • Category Charts
    • Scatter Plots
    • Pie Charts
  • MVC Widgets
    • The Models
    • Proxy models
    • Combobox Views
    • WTableView
    • WTreeView
    • Chart Views
  • Events
    • WKeyEvent
    • WMouseEvent
    • WDropEvent
  • Style and Layout
    • CSS
    • WLoadingIndicator
    • WBoxLayout
    • WGridLayout
    • WBorderLayout
WPaintedWidget [doc]

These examples show some capibilities of Wt's vector graphics API.

Wt's WPaintedWidget renders as SVG, VML or HTML5 graphics depending on the capabilities of the browser. The backend decides how to render the graphics, the application programmer has to draw his graphics using the available methods in the WPainter API. The drawing primitives include points, lines, arcs, cubic splines, text, etc.

Events will be shown here.
Build a house
Roof included
Add a door
Add a window
Add furniture
Add a chair
Add a table