要創建基於 Qt 的 Web 應用程序,Qt 提供瞭支持各種標準 Web 技術 (如 HTML、CSS 及 JavaScript) 的接口。這些接口使應用程序,能夠嵌入 WWW (萬維網) 內容。
把 Qt C++ 和 QML 代碼與 HTML 和 JavaScript 相結閤,來創建 web 應用程序也是可能的。透過 Qt WebChannel ,幾個 Qt API 可訪問遠程客戶端。
Qt provides the Chromium-based Qt WebEngine module for applications targeting desktop and embedded platforms. For example, a web browser application for Linux platform.
It also provides the Qt WebView 模塊,其使用本機平颱 Web 引擎。例如:用於 Android 和 iOS 的 RSS 饋送閱讀器的 Qt Quick 應用程序。
These pages contain information about porting applications to use Qt WebEngine and the various APIs:
The Qt WebChannel 模塊使 HTML (或 JavaScript) 客戶端能夠訪問 Qt API,譬如 QObject 。它提供 C++ (或 QML) API,允許 Qt 應用程序與 JavaScript 和 HTML 前端進行通信。
這些頁麵包含有關各種 API 的更多信息: