QWebPage Class Reference
[QtWebKit module]
Inherits QObject.
Types
- class ChooseMultipleFilesExtensionOption
- class ChooseMultipleFilesExtensionReturn
- enum ErrorDomain { QtNetwork, Http, WebKit }
- class ErrorPageExtensionOption
- class ErrorPageExtensionReturn
- enum Extension { ChooseMultipleFilesExtension, ErrorPageExtension }
- class ExtensionOption
- class ExtensionReturn
- enum FindFlag { FindBackward, FindCaseSensitively, FindWrapsAroundDocument, HighlightAllOccurrences }
- class FindFlags
- enum LinkDelegationPolicy { DontDelegateLinks, DelegateExternalLinks, DelegateAllLinks }
- enum NavigationType { NavigationTypeLinkClicked, NavigationTypeFormSubmitted, NavigationTypeBackOrForward, NavigationTypeReload, NavigationTypeFormResubmitted, NavigationTypeOther }
- enum WebAction { NoWebAction, OpenLink, OpenLinkInNewWindow, OpenFrameInNewWindow, ..., StopScheduledPageRefresh }
- enum WebWindowType { WebBrowserWindow, WebModalDialog }
Methods
- __init__ (self, QObject parent = None)
- bool acceptNavigationRequest (self, QWebFrame, QNetworkRequest, NavigationType)
- QAction action (self, WebAction)
- int bytesReceived (self)
- QString chooseFile (self, QWebFrame, QString)
- QObject createPlugin (self, QString, QUrl, QStringList, QStringList)
- QMenu createStandardContextMenu (self)
- QWebPage createWindow (self, WebWindowType)
- QWebFrame currentFrame (self)
- bool event (self, QEvent)
- bool extension (self, Extension, ExtensionOption option = None, ExtensionReturn output = None)
- bool findText (self, QString, FindFlags options = 0)
- bool focusNextPrevChild (self, bool)
- bool forwardUnsupportedContent (self)
- QWebFrame frameAt (self, QPoint)
- QWebHistory history (self)
- QVariant inputMethodQuery (self, Qt.InputMethodQuery)
- bool isContentEditable (self)
- bool isModified (self)
- javaScriptAlert (self, QWebFrame, QString)
- bool javaScriptConfirm (self, QWebFrame, QString)
- javaScriptConsoleMessage (self, QString, int, QString)
- (bool, QString result) javaScriptPrompt (self, QWebFrame originatingFrame, QString msg, QString defaultValue)
- bool javaScriptPrompt (self, QWebFrame, QString, QString, QString)
- LinkDelegationPolicy linkDelegationPolicy (self)
- QWebFrame mainFrame (self)
- QNetworkAccessManager networkAccessManager (self)
- QPalette palette (self)
- QWebPluginFactory pluginFactory (self)
- QSize preferredContentsSize (self)
- QString selectedText (self)
- setContentEditable (self, bool)
- setForwardUnsupportedContent (self, bool)
- setLinkDelegationPolicy (self, LinkDelegationPolicy)
- setNetworkAccessManager (self, QNetworkAccessManager)
- setPalette (self, QPalette)
- setPluginFactory (self, QWebPluginFactory)
- setPreferredContentsSize (self, QSize)
- QWebSettings settings (self)
- setView (self, QWidget)
- setViewportSize (self, QSize)
- bool shouldInterruptJavaScript (self)
- bool supportsExtension (self, Extension)
- bool swallowContextMenuEvent (self, QContextMenuEvent)
- int totalBytes (self)
- triggerAction (self, WebAction, bool checked = False)
- QUndoStack undoStack (self)
- updatePositionDependentActions (self, QPoint)
- QString userAgentForUrl (self, QUrl)
- QWidget view (self)
- QSize viewportSize (self)
Qt Signals
Detailed Description
Type Documentation
QWebPage.ErrorDomain
QWebPage.Extension
QWebPage.FindFlag
QWebPage.LinkDelegationPolicy
QWebPage.NavigationType
QWebPage.WebAction
QWebPage.WebWindowType
Method Documentation
QWebPage.__init__ (self, QObject parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
int QWebPage.bytesReceived (self)
QString QWebPage.chooseFile (self, QWebFrame, QString)
QObject QWebPage.createPlugin (self, QString, QUrl, QStringList, QStringList)
QMenu QWebPage.createStandardContextMenu (self)
QWebFrame QWebPage.currentFrame (self)
bool QWebPage.event (self, QEvent)
bool QWebPage.findText (self, QString, FindFlags options = 0)
bool QWebPage.focusNextPrevChild (self, bool)
bool QWebPage.forwardUnsupportedContent (self)
QWebHistory QWebPage.history (self)
QVariant QWebPage.inputMethodQuery (self, Qt.InputMethodQuery)
bool QWebPage.isContentEditable (self)
bool QWebPage.isModified (self)
QWebPage.javaScriptAlert (self, QWebFrame, QString)
bool QWebPage.javaScriptConfirm (self, QWebFrame, QString)
QWebPage.javaScriptConsoleMessage (self, QString, int, QString)
(bool, QString result) QWebPage.javaScriptPrompt (self, QWebFrame originatingFrame, QString msg, QString defaultValue)
bool QWebPage.javaScriptPrompt (self, QWebFrame, QString, QString, QString)
QWebFrame QWebPage.mainFrame (self)
QPalette QWebPage.palette (self)
QSize QWebPage.preferredContentsSize (self)
QString QWebPage.selectedText (self)
QWebPage.setContentEditable (self, bool)
QWebPage.setForwardUnsupportedContent (self, bool)
QWebPage.setLinkDelegationPolicy (self, LinkDelegationPolicy)
QWebPage.setPalette (self, QPalette)
QWebPage.setPreferredContentsSize (self, QSize)
QWebSettings QWebPage.settings (self)
QWebPage.setView (self, QWidget)
QWebPage.setViewportSize (self, QSize)
bool QWebPage.shouldInterruptJavaScript (self)
This method is also a Qt slot with the C++ signature bool shouldInterruptJavaScript().
bool QWebPage.supportsExtension (self, Extension)
bool QWebPage.swallowContextMenuEvent (self, QContextMenuEvent)
int QWebPage.totalBytes (self)
QWebPage.triggerAction (self, WebAction, bool checked = False)
QUndoStack QWebPage.undoStack (self)
QWebPage.updatePositionDependentActions (self, QPoint)
QString QWebPage.userAgentForUrl (self, QUrl)
QWidget QWebPage.view (self)
QSize QWebPage.viewportSize (self)
Qt Signal Documentation
void contentsChanged ()
This is the default overload of this signal.
void databaseQuotaExceeded (QWebFrame *,QString)
This is the default overload of this signal.
void downloadRequested (const QNetworkRequest&)
This is the default overload of this signal.
void frameCreated (QWebFrame *)
This is the default overload of this signal.
void geometryChangeRequested (const QRect&)
This is the default overload of this signal.
void linkClicked (const QUrl&)
This is the default overload of this signal.
void linkHovered (const QString&,const QString&,const QString&)
This is the default overload of this signal.
void loadFinished (bool)
This is the default overload of this signal.
void loadProgress (int)
This is the default overload of this signal.
void loadStarted ()
This is the default overload of this signal.
void menuBarVisibilityChangeRequested (bool)
This is the default overload of this signal.
void microFocusChanged ()
This is the default overload of this signal.
void printRequested (QWebFrame *)
This is the default overload of this signal.
void repaintRequested (const QRect&)
This is the default overload of this signal.
void restoreFrameStateRequested (QWebFrame *)
This is the default overload of this signal.
void saveFrameStateRequested (QWebFrame *,QWebHistoryItem *)
This is the default overload of this signal.
void scrollRequested (int,int,const QRect&)
This is the default overload of this signal.
void selectionChanged ()
This is the default overload of this signal.
void statusBarMessage (const QString&)
This is the default overload of this signal.
void statusBarVisibilityChangeRequested (bool)
This is the default overload of this signal.
void toolBarVisibilityChangeRequested (bool)
This is the default overload of this signal.
void unsupportedContent (QNetworkReply *)
This is the default overload of this signal.
void windowCloseRequested ()
This is the default overload of this signal.