|
Qt Components Hildon
0.20
QML components for Maemo5 with Hildon styling.
|
Provides an item that is used to view and edit web documents. More...
Public Slots | |
| void | copy () |
| Copies the selected HTML to the clipboard. | |
| void | cut () |
| Copies the selected HTML to the clipboard and removes it from the web page. | |
| bool | findAllText (string text) |
| Searches for all occurrances of text in the web page. | |
| bool | findText (string text) |
| Searches for the next occurrance of text in the web page. | |
| void | paste () |
| Inserts the the clipboard's contents into the web page. | |
Signals | |
| void | downloadRequested (variant request) |
| This signal is emitted when the user decides to download a link. | |
| void | unsupportedContent (variant content) |
| This signal is emitted when WebKit cannot handle a link the user navigated to or a web server's response includes a "Content-Disposition" header with the 'attachment' directive. | |
Public Member Functions | |
| variant | hitTestContent (int x, int y) |
| Performs a hit test at x,y, and returns the result. | |
Properties | |
| bool | forwardUnsupportedContent |
| Whether to forward content that is not supported. | |
| bool | hasSelection |
| Whether any text is selected in the web view. | |
| string | html |
| The HTML of the web view. | |
| QWebPage::LinkDelegationPolicy | linkDelegationPolicy |
| The policy used to determine how to handle activated links. | |
| Component | newWindowComponent |
| The component used when a new window is requested. | |
| int | preferredHeight |
| The preferred height of the web view. | |
| int | preferredWidth |
| The preferred width of the web view. | |
| int | progress |
| The loading progress of the web view. | |
| string | selectedText |
| The selected text of the web view. | |
| enumeration | status |
| The current status of the web view. | |
| string | statusText |
| The status text of the web view. | |
| string | text |
| The HTML of the web view as plain text. | |
| string | userAgent |
| The user-agent string used when loading a web page. | |
Provides an item that is used to view and edit web documents.
WebView is the main component of the org.hildon.webkit web browsing module. It can be used in various applications to display web content live from the internet.
|
slot |
Copies the selected HTML to the clipboard.
|
slot |
Copies the selected HTML to the clipboard and removes it from the web page.
|
signal |
This signal is emitted when the user decides to download a link.
The url of the link as well as additional meta-information is contained in request.
|
slot |
Searches for all occurrances of text in the web page.
Returns true if successful.
|
slot |
Searches for the next occurrance of text in the web page.
Returns true if successful.
|
slot |
Inserts the the clipboard's contents into the web page.
|
signal |
This signal is emitted when WebKit cannot handle a link the user navigated to or a web server's response includes a "Content-Disposition" header with the 'attachment' directive.
If "Content-Disposition" is present in content, the web server is indicating that the client should prompt the user to save the content regardless of content-type. See RFC 2616 sections 19.5.1 for details about Content-Disposition.
|
readwrite |
Whether to forward content that is not supported.
If this property is set to true, the unsupportedContent() signal will be emitted when unsupported content is found.
|
readwrite |
The policy used to determine how to handle activated links.
Possible values are:
| Value | Description |
|---|---|
| WebPage.DontDelegateLinks | No links are delegated (default). |
| WebPage.DelegateExternalLinks | When activating links that point to documents not stored on the local filesystem or an equivalent - such as the Qt resource system - then linkClicked() is emitted. |
| WebPage.DelegateAllLinks | Whenever a link is activated the linkClicked() signal is emitted. |
|
read |
The current status of the web view.
Possible values are:
| Value | Description |
|---|---|
| WebView.Null | No web page has been loaded (default). |
| WebView.Loading | The web page is being loaded. |
| WebView.Ready | The web page has been loaded. |
| WebView.Error | An error occured when loading the web page. |
1.8.1.2