| Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions |
[前: QtSvg モジュール] [Qt のモジュール] [次: QtXml モジュール]
QtWebKit モジュールの紹介です。 詳細はこちら
| QWebDatabase | JavaScript と共に使用される HTML 5 データベースへのアクセス |
|---|---|
| QWebFrame | ウェブページ内のフレームを表わす |
| QWebHistory | QWebPage の履歴を表わす |
| QWebHistoryInterface | リンクの履歴を実装するためのインターフェース |
| QWebHistoryItem | QWebPage の履歴のうちの1つのアイテムを表わす |
| QWebHitTestResult | ウェブページのコンテンツの hit test の情報 |
| QWebPage | ウェブのドキュメントを閲覧したり編集したりするためのオブジェクト |
| QWebPluginFactory | ウェブページに埋め込まれるプラグインを作成する |
| QWebSecurityOrigin | ウェブサイトのセキュリティ境界を定義する |
| QWebSettings | QWebPage と QWebFrame で使われる設定を保持するオブジェクト |
| QWebView | ウェブドキュメントを閲覧したり編集したりするために使用されるウィジット |
QtWebKit は World Wide Web からのコンテンツをあなたの Qt アプリケーションに埋め込むことを簡単にするウェブブラウザエンジンを提供します。ネイティブのコントロールによりウェブコンテンツの力をさらに高められるでしょう。
QtWebKit は Cascading Style Sheets (CSS) により修飾され、JavaScript にて動作する HyperText Markup Language (HTML)、Extensible HyperText Markup Language (XHTML) と Scalable Vector Graphics (SVG) のドキュメントのレンダリングの機能を提供します。
JavaScript の実行環境と Qt オブジェクトモデル間の橋渡しにより、カスタマイズされた QObject がスクリプトで使用できます。Qt ネットワークモジュールの統合はウェブサーバーからやローカルのファイルシステム、さらには Qt のリソースシステムからでもウェブページをロードすることを可能にします。
単に描画する機能に加えて、 contenteditable アトリビュートを HTML エレメントに使用することにより、HTML ドキュメントを完全に編集可能にすることができます。
QtWebKit はオープンソースの WebKit エンジンを基にしています。WebKit 自体のこれ以上の情報は WebKit Open Source Project のサイトで見ることができます。
QtWebKit モジュールは Qt Full Framework Edition と Open Source Versions of Qt の一部です。
Note: Building the QtWebKit module with debugging symbols is problematic on many platforms due to the size of the WebKit engine. We recommend building the module in release mode only for embedded platforms.
Note: Web site icons, also known as "FavIcons", are currently not supported on Windows. We plan to address this in a future release.
Note: WebKit has certain minimum requirements that must be met on Embedded Linux systems. See the Qt for Embedded Linux Requirements document for more information.
Topics:
Applications that use QtWebKit's classes need to be configured to be built against the QtWebKit module. The following declaration in a qmake project file ensures that an application is compiled and linked appropriately:
QT += webkit
This line is necessary because only the QtCore and QtGui modules are used in the default build process.
To include the definitions of the module's classes, use the following directive:
#include <QtWebKit>
The easiest way to render content is through the QWebView class. As a widget it can be embedded into your forms or a graphics view, and it provides convenience functions for downloading and rendering web sites.
QWebView *view = new QWebView(parent); view->load(QUrl("http://qtsoftware.com/")); view->show();
QWebView acts as a view onto Web pages, each of which is represented by an instance of the QWebPage class. QWebPage provides access to the document structure in a page, describing features such as frames, the navigation history, and the undo/redo stack for editable content.
HTML documents can be nested using frames in a frameset. An individual frame in HTML is represented using the QWebFrame class. It includes the bridge to the JavaScript window object and can be painted using QPainter. Each QWebPage has one QWebFrame object as its main frame.
Individual browser features, defaults and other settings can be configured through the QWebSettings class. It is possible to provide defaults for all QWebPage instances through the default settings. Individual attributes can be overidden by the page specific settings object.
Note: Plugins that conform to the Netscape Plugin API (NPAPI) can be embedded into pages on X11 only.
Since WebKit supports the Netscape Plugin API on X11 platforms, Qt applications can display Web pages that embed common plugins, as long as the user has the appropriate binary files installed.
The following locations are searched for plugins:
| Linux/Unix | Windows |
|---|---|
|
|
| Mac OS X | |
|
これは WebKit の Qt 対応のスナップショットです。正確なバージョン情報は Qt と一緒に提供されるファイルの中の src/3rdparty/webkit/VERSION を見てください。
Qt Commercial Edition licensees that wish to distribute applications that use the QtWebKit module need to be aware of their obligations under the GNU Lesser General Public License (LGPL).
Developers using the Open Source Edition can choose to redistribute the module under the appropriate version of the GNU LGPL; version 2.1 for applications and libraries licensed under the GNU GPL version 2, or version 3 for applications and libraries licensed under the GNU GPL version 2.
WebKit is licensed under the GNU Library General Public License. Individual contributor names and copyright dates can be found inline in the code.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
[前: QtSvg モジュール] [Qt のモジュール] [次: QtXml モジュール]
| Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt 4.5.0 |