GO-V.ORG
As seen in

Wt (web toolkit)

Wt (pronounced "witty") is an open-source widget-centric web framework for the C++ programming language.[src] It has an API resembling that of Qt framework (although it was developed with Boost, and is incompatible when mixed with Qt), also using a widget-tree and an event-driven signal/slot system.[src] The Wt's design goal is to benefit from the stateful component model used in desktop-applications APIs, applied to web development—instead of the traditional MVC (model–view–controller) design pattern.[src] So rather than using MVC at the level of a web page, it is pushed to the level of individual components.[src] While the library uses a desktop software development process, it does support some web-specific features, including: * Semantic URLs * Navigation of browser's history One of the unique features of Wt is its abstraction layer of the browser rendering model.[src] The library uses Ajax for communicating with browsers compatible with it, while using plain HTML-form post-backs for other user agents.[src] Using a progressive bootstrap-method, the user interface is rendered as a plain HTML document first, then, provided its support in browser, it is automatically upgraded to use Ajax for increased interactivity.…[src]

Wt (pronounced "witty") is an open-source widget-centric web framework for the C++ programming language.[src] It has an API resembling that of Qt framework (although it was developed with Boost, and is incompatible when mixed with Qt), also using a widget-tree and an event-driven signal/slot system.[src] The Wt's design goal is to benefit from the stateful component model used in desktop-applications APIs, applied to web development—instead of the traditional MVC (model–view–controller) design pattern.[src] So rather than using MVC at the level of a web page, it is pushed to the level of individual components.[src] While the library uses a desktop software development process, it does support some web-specific features, including: Semantic URLs Navigation of browser's history One of the unique features of Wt is its abstraction layer of the browser rendering model.[src] The library uses Ajax for communicating with browsers compatible with it, while using plain HTML-form post-backs for other user agents.[src] Using a progressive bootstrap-method, the user interface is rendered as a plain HTML document first, then, provided its support in browser, it is automatically upgraded to use Ajax for increased interactivity.[src] In this way, Wt is by definition: The only server-side framework implementing the strategy of progressive enhancement automatically; The only Ajax framework with search engine optimization (SEO) qualities.[src] Because of the popularity of C/C++ in embedded system environments, Wt is often used in such devices and (as a consequence) has been highly optimized for performance.[src] ==Major features== Automatic graceful degradation and progressive enhancement Supports server-initiated events (Comet) A unified rendering API (SVG, the HTML5 canvas element, VML) Client- and server-side validation Contains various security features to avoid Cross-site scripting and Cross-site request forgery (CSRF) vulnerabilities Includes a compact C++ ORM-layer ("Wt::Dbo") Uses the WebSocket networking protocol, if available, for Client–server model of communication, with fallbacks to Ajax or plain web page rendering For a more detailed overview, see the Features section of official website.[src] ==Code example== The "Hello, World!" program in Wt: include include include include include include /* * A simple hello world application class which demonstrates how to react * to events, read input, and give feed-back.[src] */ class HelloApplication : public Wt::WApplication { public: HelloApplication(const Wt::WEnvironment& env); private: Wt::WLineEdit *nameEdit_; Wt::WText *greeting_; void greet(); }; /* * The env argument contains information about the new session, and * the initial request.[src] It must be passed to the WApplication * constructor so it is typically also an argument for your custom * application constructor.[src] / HelloApplication::HelloApplication(const Wt::WEnvironment& env) : WApplication(env) { setTitle("Hello world"); // application title root()->addNew ("Your name, please ?[src] "); // show some text nameEdit_ = root()->addNew (); // allow text input nameEdit_->setFocus(); // give focus auto button = root()->addNew ("Greet me."); // create a button button->setMargin(5, Wt::Side::Left); // add 5 pixels margin root()->addNew (); // insert a line break greeting_ = root()->addNew (); // empty text /* * Connect signals with slots * * - simple Wt-way: specify object and method */ button->clicked().connect(this, &HelloApplication::greet); /* * - using an arbitrary function object, e.g.[src] useful to bind * values with std::bind() to the resulting method call */ nameEdit_->enterPressed().connect(std::bind(&HelloApplication::greet, this)); /* * - using a lambda: */ button->clicked().connect([=]() { std::cerr text() setText("Hello there, " + nameEdit_->text()); } int main(int argc, char **argv) { /* * Your main method may set up some shared resources, but should then * start the server application (FastCGI or httpd) that starts listening * for requests, and handles all of the application life cycles.[src] * * The last argument to WRun specifies the function that will instantiate * new application objects.[src] That function is executed when a new user surfs * to the Wt application, and after the library has negotiated browser * support.[src] The function should return a newly instantiated application * object.[src] */ return Wt::WRun(argc, argv, [](const Wt::WEnvironment &env) { /* * You could read information from the environment to decide whether * the user has permission to start a new application */ return std::make_unique (env); }); } ==See also== Comparison of web-frameworks JWt (Java web toolkit), a native Java version of Wt Other C++ web frameworks ==References== ==External links==[src]

27 sentences · 27 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Wt (web toolkit)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/wt-web-toolkit. Accessed 06 December 2026.

Chicago

"Wt (web toolkit)." encyclopegia.org. Accessed December 6, 2026. https://encyclopegia.org/wiki/wt-web-toolkit.

APA

encyclopegia.org. (2026). Wt (web toolkit). Retrieved December 6, 2026, from https://encyclopegia.org/wiki/wt-web-toolkit

Accessed December 6, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

web server

stub · references available

web beacon

stub · references available

web syndication

stub · references available

web development

stub · references available

comparison of server-side web frameworks

stub · references available

Russian web brigades

stub · references available

Spider's Web

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1376305540 · 0.5 · snapshot enwiki-001376305540

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.