diff options
Diffstat (limited to 'examples/webenginewidgets/contentmanipulation/doc/src/contentmanipulation.qdoc')
-rw-r--r-- | examples/webenginewidgets/contentmanipulation/doc/src/contentmanipulation.qdoc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/examples/webenginewidgets/contentmanipulation/doc/src/contentmanipulation.qdoc b/examples/webenginewidgets/contentmanipulation/doc/src/contentmanipulation.qdoc index aa94b17da..66a1252dc 100644 --- a/examples/webenginewidgets/contentmanipulation/doc/src/contentmanipulation.qdoc +++ b/examples/webenginewidgets/contentmanipulation/doc/src/contentmanipulation.qdoc @@ -36,7 +36,7 @@ \e{Content Manipulation} shows how to use JQuery with \l {Qt WebEngine Widgets} to create a web browser with special effects and content manipulation. - In the application, we call QWebEnginePage::runJavaScript() to + In the application, we call \l {QWebEnginePage::runJavaScript()} to execute jQuery JavaScript code. We implement a QMainWindow with a QWebEngineView as a central widget to build up the browser itself. @@ -51,7 +51,7 @@ \skipto class MainWindow : \printuntil /^\}/ - We also declare a QString that contains the jQuery, a QWebEngineView + We also declare a QString that contains jQuery, a QWebEngineView that displays the web content, and a QLineEdit that acts as the address bar. @@ -74,9 +74,9 @@ The second part of the constructor creates a QWebEngineView and connects slots to the view's signals: - \printuntil SLOT(finishLoading + \printuntil MainWindow::finishLoading - Furthermore, we create a QLineEdit as the browser's address bar. We then set the horizontal + Furthermore, we create a QLineEdit as the browser's address bar. We then set the vertical QSizePolicy to fill the available area in the browser at all times. We add the QLineEdit to a QToolBar together with a set of navigation actions from QWebEngineView::pageAction(): @@ -136,10 +136,6 @@ \printuntil } \printuntil } - We append \c undefined after the jQuery call to prevent a possible recursion loop - and crash caused by the way the elements returned by the each iterator elements - reference each other, which causes problems upon converting them to QVariant. - The \c rotateImages() function rotates the images on the current web page. This JavaScript code relies on CSS transforms. It looks up all \e {img} elements and rotates the images 180 degrees |