diff options
Diffstat (limited to 'src/webenginequick/doc/src/webengineview_lgpl.qdoc')
-rw-r--r-- | src/webenginequick/doc/src/webengineview_lgpl.qdoc | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/src/webenginequick/doc/src/webengineview_lgpl.qdoc b/src/webenginequick/doc/src/webengineview_lgpl.qdoc index 2be475903..04bf71550 100644 --- a/src/webenginequick/doc/src/webengineview_lgpl.qdoc +++ b/src/webenginequick/doc/src/webengineview_lgpl.qdoc @@ -583,13 +583,23 @@ while holding Shift, Ctrl, or a built-in combination that triggers the page to open in a new window. + The signal is handled by calling acceptAsNewView() on the destination view. If this signal is not handled, the requested load will fail. An example implementation: \snippet snippets/qtwebengine_webengineview_newviewrequested.qml 0 - \sa NewViewDestination, {WebEngine Quick Nano Browser} + \sa WebEngineNewViewRequest, {WebEngine Quick Nano Browser} +*/ + +/*! + \qmlmethod void WebEngineView::acceptAsNewView(QWebEngineNewWindowRequest *request) + \since QtWebEngine 2.0 + + Handle the newViewRequested signal by opening the \a request in this view. + + \sa newViewRequested */ /*! @@ -689,23 +699,6 @@ */ /*! - \qmlproperty enumeration WebEngineView::NewViewDestination - - Describes how to open a new view: - - \value WebEngineView.NewViewInWindow - In a separate Window. - \value WebEngineView.NewViewInTab - In a tab of the same window. - \value WebEngineView.NewViewInDialog - In a Window without a tab bar, toolbar, or URL bar. - \value WebEngineView.NewViewInBackgroundTab - In a tab of the same window, without hiding the currently visible web engine view. - - \sa {WebEngineNewViewRequest::destination}{WebEngineNewViewRequest.destination} -*/ - -/*! \qmlproperty enumeration WebEngineView::FindFlags Describes the options available to the findText() function. The options |