diff options
author | Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> | 2016-01-11 10:37:31 +0100 |
---|---|---|
committer | Michael BrĂ¼ning <michael.bruning@theqtcompany.com> | 2016-01-19 15:14:40 +0000 |
commit | f8ac9f0eb1745648750493cfbb16eed0d859b212 (patch) | |
tree | 470c45cb3110d6d5b368fabf771a6eb120dffd9f /src/webenginewidgets/doc/src/qtwebkitportingguide.qdoc | |
parent | e7f4ddebc3f1a857b81d3468119cda9236513bf4 (diff) |
Doc: link capturing methods
Task-number: QTBUG-48435
Change-Id: If7117ecb11a0f06df1204dc91757a29c5444e189
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Diffstat (limited to 'src/webenginewidgets/doc/src/qtwebkitportingguide.qdoc')
-rw-r--r-- | src/webenginewidgets/doc/src/qtwebkitportingguide.qdoc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/webenginewidgets/doc/src/qtwebkitportingguide.qdoc b/src/webenginewidgets/doc/src/qtwebkitportingguide.qdoc index ca1309718..065e5a18b 100644 --- a/src/webenginewidgets/doc/src/qtwebkitportingguide.qdoc +++ b/src/webenginewidgets/doc/src/qtwebkitportingguide.qdoc @@ -279,5 +279,12 @@ \li In the latest HTML standard, any document element can be made editable through the \c contentEditable attribute. So \c runJavaScript is all that is needed: \c{page->runJavascript("document.documentElement.contentEditable = true")} + \row + \li QWebPage::setLinkDelegationPolicy + \li There is no way to connect a signal to run C++ code when a link is clicked. However, + link clicks can be delegated to the Qt application instead of having the HTML handler + engine process them by overloading the QWebEnginePage::acceptNavigationRequest() + function. This is necessary when an HTML document is used as part of the user interface, + and not to display external data, for example, when displaying a list of results. \endtable */ |