![]() |
Home · All Classes · Main Classes · Grouped Classes · Modules · Functions | ![]() |
The QWebView class provides a widget that is used to view and edit web documents. More...
#include <QWebView>
Inherits QWidget.
This class was introduced in Qt 4.4.
|
|
The QWebView class provides a widget that is used to view and edit web documents.
QWebView is the main widget component of the QtWebKit web browsing module.
This property holds the icon associated with the web page currently viewed.
Access functions:
This property holds indicates whether the document was modified by the user or not.
Parts of HTML documents can be editable for example through the contenteditable attribute on HTML elements.
Access functions:
This property holds the text currently selected.
Access functions:
Specifies how the view should interact with user input.
Access functions:
This property holds the title of the web page currently viewed.
Access functions:
This property holds the url of the web page currently viewed.
Access functions:
Constructs an empty QWebView with parent parent.
Destructor.
Returns a pointer to a QAction that encapsulates the specified web action action.
Convenience slot that loads the previous document in the list of documents built by navigating links. Does nothing if there is no previous document.
It is equivalent to
view->page()->triggerAction(QWebPage::GoBack);
This function is called whenever WebKit wants to create a new window, for example as a result of a JavaScript request to open a document in a new window.
Convenience slot that loads the next document in the list of documents built by navigating links. Does nothing if there is no next document.
It is equivalent to
view->page()->triggerAction(QWebPage::GoForward);
Returns a pointer to the view's history of navigated web pages.
It is equivalent to
view->page()->history();
This signal is emitted whenever the icon of the page is loaded or changes.
This signal is emitted when a load of the frame is finished.
This signal is emitted when the global progress status changes. The current value is provided by progress in percent. It accumulates changes from all the child frames.
This signal is emitted when a new load of the frame is started.
Returns a pointer to the underlying web page.
See also setPage().
Reloads the current document.
This signal is emitted whenever the selection changes.
Sets the content of the web view to the specified content data. If the mimeType argument is empty it is assumed that the content is HTML.
External objects referenced in the HTML document are located relative to baseUrl.
Sets the content of the web view to the specified html.
External objects referenced in the HTML document are located relative to baseUrl.
This is an overloaded member function, provided for convenience.
Sets the content of the web view to the specified html.
External objects referenced in the HTML document are located relative to baseUrl.
Makes page the new web page of the web view.
The parent QObject of the provided page remains the owner of the object. If the current document is a child of the web view, then it is deleted.
See also page().
Returns a pointer to the view/page specific settings object.
It is equivalent to
view->page()->settings();
This signal is emitted when the statusbar text is changed by the page.
Convenience slot that stops loading the document.
It is equivalent to
view->page()->triggerAction(QWebPage::Stop);
This signal is emitted whenever the title of the frame changes.
See also title().
Triggers the specified action. If it is a checkable action the specified checked state is assumed.
The following example triggers the copy action and therefore copies any selected text to the clipboard.
view->triggerAction(QWebPage::Copy);
This signal is emitted whenever the url of the main frame changes.
See also url().
Copyright © 2007 Trolltech | Trademarks | Qt 4.4.0-tp1 |