summaryrefslogtreecommitdiffstats
path: root/examples/webenginewidgets
Commit message (Collapse)AuthorAgeFilesLines
...
* | Remove DemoBrowserJüri Valdmann2017-07-2677-14737/+0
| | | | | | | | | | | | | | | | | | | | [ChangeLog][Examples] Removed WebEngine Demo Browser example, which got superseded by the improved WebEngine Widgets Simple Browser. Task-number: QTBUG-59819 Change-Id: I214e6f5f3a946ed617a9f4d628d3259a69874ca1 Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* | Fix stylesheetbrowser to build in Qt namespaced buildAlexandru Croitor2017-07-132-0/+4
| | | | | | | | | | | | Task-number: QTBUG-61865 Change-Id: Ic49496ed4fdabac5be8d540d4a5daa5c83fe36f2 Reviewed-by: Liang Qi <liang.qi@qt.io>
* | Merge remote-tracking branch 'origin/5.9' into devAllan Sandfeld Jensen2017-07-057-74/+33
|\| | | | | | | Change-Id: Ida702fd5fa05a32d6cd7fc737aa061da74b675a0
| * Always compile QWebEnginePage::printJüri Valdmann2017-06-263-25/+0
| | | | | | | | | | | | | | | | | | | | | | - Remove two out of five layers of ifdefs around and inside this method. - Now always compiled but will yield an error if printing is disabled. - Remove printing-related ifdefs from demobrowser. Task-number: QTBUG-61510 Change-Id: I79781189d3d3fb62db0a2216b2b989e3fa1d1f86 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Rolf Eike Beer <eb@emlix.com>
| * Use AllowPersistentCookies as default setting in demobrowserMichal Klocek2017-06-201-1/+3
| | | | | | | | | | | | | | | | | | By default we should allow persistent cookies otherwise demobrowser might give an impression that cookies are not working. Task-number: QTBUG-58675 Change-Id: I13ef2729b7f4a757a0d7e0c695dafd4e2f1f75be Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Update Content Manipulation example codeJüri Valdmann2017-06-192-44/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use the new signals and slots syntax, QStringLiteral, lambdas and nullptr. - Use tr consistently for user-visible text. - Use unprefixed CSS transform properties. - Remove the "; undefined" workaround for runJavaScript calls, which is supposed to prevent a "possible recursion loop and crash" due to QVariant conversion. However, since no callback is passed to the method, no such conversion is taking place nowadays. Task-number: QTBUG-60655 Change-Id: Iad9131a17e488bf5e6b1905483be33b562dbfc62 Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Viktor Engelmann <viktor.engelmann@qt.io>
| * Add Search in page to Simple BrowserJüri Valdmann2017-06-132-1/+48
| | | | | | | | | | | | | | Task-number: QTBUG-59824 Change-Id: Id72428996721bd60596becc5b13b29a132f70e69 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit af422d3fc6061ef057bb6f8b58b97af62304e836)
| * Fix some minor issues in example docsJüri Valdmann2017-06-132-4/+4
| | | | | | | | | | | | | | Task-number: QTBUG-60655 Change-Id: Ie385232d5c126eafc18c08f49c15cc5e18c69ba1 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| * Fix build of html2pdf exampleKai Koehne2017-06-131-0/+1
| | | | | | | | | | | | | | | | | | | | Fixes build issue on Windows: html2pdf.cpp(88): error C2027: use of undefined type 'QtNamespace::QTextStream' Change-Id: Idf43d826f72a6dd06245c3d072b6c6ea58ea2ae6 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
| * Revert "Fix flushing the cookies with demobrowser"Michal Klocek2017-06-082-9/+11
| | | | | | | | | | | | | | | | | | | | | | Mea culpa ! This is not only not required in 5.9.1 but also does not even compile. This reverts commit dc70e81da3f7b639ace9c5cc14e1fd4eb1942e4c. Task-number: QTBUG-61299 Change-Id: I0879abe58a23588bddf9e4217899d7bfbf604438 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
| * Fix flushing the cookies with demobrowserMichal Klocek2017-06-062-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix destruction of browser context, which takes place on qt_call_post_routines. Unfortunately demo browser destructs its windows just before qapplication destructor runs, so there is no more main event loop running. Please note this is just a quick fix, and proper fix would require refactoring the example not to use anit-pattern of deriving from qapplication. Task-number: QTBUG-58675 Change-Id: I419a1655a70397e69fecef2ceb37cbfc7e7f5ca4 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Fix build of html2pdf exampleSzabolcs David2017-06-061-0/+1
| | | | | | | | | | | | | | | | Add the missing QTextStream include. Change-Id: I892a90deaccde03df3d974c35b6d41dcc013ef65 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* | Merge remote-tracking branch 'origin/5.9' into devAllan Sandfeld Jensen2017-05-3027-4/+1272
|\| | | | | | | Change-Id: I962033871a1ef624807a4e1869fe869406aa73f7
| * Merge remote-tracking branch 'origin/5.9.0' into 5.9Allan Sandfeld Jensen2017-05-291-1/+1
| |\ | | | | | | | | | Change-Id: Iba6114263488d6bf84b255b38182904dc5880386
| | * Fix backwards compatibilityAllan Sandfeld Jensen2017-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QtWebEngine supports building with last stable and last LTS Qt releases. Guard some 5.7-5.9 API from being used when not available, and reinstate the default features for 5.6 LTS builds. Change-Id: Ia288a49109d011a2bee883d4a2d38d994b497d59 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
| * | Create example for WebEngine's Print To PdfJüri Valdmann2017-05-235-0/+241
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds example command line tool 'html2pdf' that loads a URL into QWebEnginePage and prints it to a pdf file. Task-number: QTBUG-59823 Change-Id: I898e9a9ecdf819f417876f964d40e494f6095c99 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Michael Brüning <michael.bruning@qt.io>
| * | Create example for geolocation in WebEngineJüri Valdmann2017-05-157-0/+293
| |/ | | | | | | | | | | Task-number: QTBUG-59822 Change-Id: Iee69f10fefa223313ca112f096b65446b4156ac1 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
| * Create example for full screen feature in WebEngineJüri Valdmann2017-05-0413-1/+728
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds an example ('videoplayer') showing how to enable the Fullscreen API[1] in QWebEngineView. This is one of the missing examples blocking the removal of demobrowser. [1]: https://fullscreen.spec.whatwg.org Task-number: QTBUG-59820 Change-Id: Ib02a1556515d87e595ca54c2bce18c9144030fbc Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| * SimpleBrowser: Press Ctrl-L to focus the location barJoerg Bornemann2017-05-041-0/+7
| | | | | | | | | | | | | | | | This commonly used short cut is a must-have for every browser, even simple ones. Change-Id: I2a0bde05bceeb5a4334e3a7168bd45a9335311ee Reviewed-by: Kai Koehne <kai.koehne@qt.io>
| * markdown: Code beautificationKai Koehne2017-05-032-2/+2
| | | | | | | | | | Change-Id: I74d30578a9725f10a8d4e86ff8740d5f467d0fbc Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Add StyleSheet Browser exampleSzabolcs David2017-05-1813-1/+833
| | | | | | | | | | | | | | | | | | Demonstrates how to inject and remove stylesheets using the user scripts API. Change-Id: If498365897618f873fa96d7a7b04a370e196618e Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Merge remote-tracking branch 'origin/5.9' into devLiang Qi2017-05-023-6/+3
|\| | | | | | | | | | | | | | | | | | | | | src/3rdparty used sha1 from 5.9, because both 5.9 and dev are using same branch now. Conflicts: src/3rdparty tests/auto/widgets/qwebenginepage/BLACKLIST Change-Id: I16a33e0f91779d1ee3a230070ff4248699c2e1bd
| * Fix crash on macOS when closing last tab of a windowAlexandru Croitor2017-04-211-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because of weird interaction between deleteLater(), Qt::WA_DeleteOnClose, and QQuickRenderControlPrivate::windowDestroyed() which executes all the deferred deletions at a bad time, there were some use-after-free crashes. The workaround is not to close the window when the last tab is closed, but rather create a new tab, like the behavior was on non-macOS platforms. Task-number: QTBUG-58982 Change-Id: I00295838c298af382cac78bb22c47d6de60e7755 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| * DemoBrowser: Fix use of system proxyKai Koehne2017-03-301-1/+1
| | | | | | | | | | | | | | | | | | | | The example did always set an application proxy, though it was empty if no proxy was explicitly set in the system. This however blocked the use of the system settings. Task-number: QTBUG-58748 Change-Id: I50d9116e491cb7c1ab5b8fc610736d60e0bc9ea8 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
| * Set WA_DeleteOnClose in contentmanipulation exampleFlorian Bruhin2017-03-281-0/+1
| | | | | | | | | | | | | | | | | | | | Otherwise, the MainWindow and QWebEngineView remains on the heap when closing the application. Task-number: QTBUG-59765 Change-Id: Ia643d1e919ca5f0a1d9405ba9b7ab72aabd8c051 Reviewed-by: Viktor Engelmann <viktor.engelmann@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Add Search in page to Simple BrowserJüri Valdmann2017-04-262-1/+48
| | | | | | | | | | | | Task-number: QTBUG-59824 Change-Id: Id72428996721bd60596becc5b13b29a132f70e69 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Merge remote-tracking branch 'origin/5.9' into devAllan Sandfeld Jensen2017-03-282-2/+2
|\| | | | | | | Change-Id: I3a6f92b6da850b124aae68af390211b613d3d640
| * Remove uses of QString::nullMarc Mutz2017-03-112-2/+2
| | | | | | | | | | | | | | It's going to be deprecated. Change-Id: Iec967478785d327caa846a259fb8eeff18173429 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* | demobrowser: Show download interruption reasonFlorian Bruhin2017-03-271-1/+1
|/ | | | | | | Task-number: QTBUG-56839 Change-Id: Id43a3389714b56d1ce82f6f4e69b52ecfbbfeeec Reviewed-by: Viktor Engelmann <viktor.engelmann@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Merge remote-tracking branch 'origin/5.8' into 5.9Allan Sandfeld Jensen2017-03-023-2/+3
|\ | | | | | | Change-Id: Iff6ab3c287c58d8ec84a1513460bfce5218e8a61
| * Add support for macOS Airplay to Demobrowser in presence of dual GPUsAlexandru Croitor2017-02-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously when Airplay was activated and a new QWebEngineView instance was created, a black area would be rendered inside the view. This happened because of incompatible OpenGL contexts. The global Qt OpenGL context could not share its textures with the newly created "after-airplay" context, due to the contexts being used by different GPUs (only possible on a MacBook Pro). The fix is to add the NSSupportsAutomaticGraphicsSwitching option into the application plist file, which informs macOS that the application supports usage of dual GPUs, and thus allows sharing of contexts across GPUs. Task-number: QTBUG-54053 Change-Id: Ic37fb75f164922bcca6456054174171fa9ba2bfb Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Fix crash on context menuAllan Sandfeld Jensen2017-02-222-2/+1
| | | | | | | | | | | | | | | | | | | | Instead of calling deleteLater, just tell close to delete the menu itself. Task-number: QTBUG-59080 Change-Id: I3eae382781f813ed3c6f27b78088b94ed1c486dd Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* | Fix webengine demobrowser exampleIonut Alexandrescu2017-03-012-10/+11
|/ | | | | | | | | | | fullScreenNotification is a child of fullScreenView and should not be deleted. On multiscreen systems, the fullScreenView window was always shown on the main monitor Restore the main window position Change-Id: I2c940306d06668ad52a2388832ceb48b4791779d Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fixing webengine spell checker exampleIonut Alexandrescu2017-01-201-2/+2
| | | | | | | | The languages submenu was not working corectly, languages could not be checked Change-Id: I7221d3527dbd6e071eb8d1585fb6d90812c61f94 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Add .pro files for example subdirectoriesTopi Reinio2017-01-051-0/+17
| | | | | | | | | | | | | Instead of adding individual example projects into SUBDIRS from the top-level examples.pro, add a .pro file for both /examples/webengine and /examples/webenginewidgets that handles them. This way, it's easier to e.g. build all webengine examples from binary packages, as the top-level examples.pro is not packaged. Task-number: QTBUG-57124 Change-Id: I8cf8ac7b13b86306b31bc43c79e3d8272193b1d3 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Update spellcheck api to support multiple languagesMichal Klocek2016-10-291-3/+3
| | | | | | Task-number: QTBUG-56074 Change-Id: I2a66e91dd4ed1026e5ab2539cfd3f9094263b48c Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Fix spellchecking for macOSAlexandru Croitor2016-10-172-9/+34
| | | | | | | | | | | | The change fixes spellchecking to work on macOS. A new WebEngine configure option is available to allow spellchecking on macOS to use either Hunspell like the other platforms, or the native spellchecker that comes with the OS. The default is to use Hunspell. Task-number: QTBUG-53135 Change-Id: I3e45b2e0d728b1bf2659c35f3d0a042b0ecd6239 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* demobrowser: Fix compilation warningPeter Varga2016-10-071-0/+2
| | | | | Change-Id: I283365c72d351e62bc749cbc60e06472e52255ec Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* MarkDownEditor: Hide context menuKai Koehne2016-10-042-2/+8
| | | | | | | | Most actions do not make sense. A custom context menu might be good for text actions, but would require reimplementing QWebEngineView. Change-Id: Idf94939c16469e1dcee96d9ecfd0eb5309589fdd Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Fix memory leak on printAllan Sandfeld Jensen2016-09-231-1/+1
| | | | | | | We need to delete the QPrintDialog. Change-Id: I959f963ba2e44091acb0c762ac680037bccc5b43 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Add printing on a QPrinter to the demobrowserMichael Bruning2016-08-282-11/+35
| | | | | Change-Id: I307103956bf50469a5c4cbe3656f655925f55653 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Merge remote-tracking branch 'origin/5.7' into devLiang Qi2016-08-0511-9/+59
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also blacklist tst_QWebEnginePage::comboBoxPopupPositionAfterChildMove() and comboBoxPopupPositionAfterMove(). Conflicts: .qmake.conf src/3rdparty src/core/render_widget_host_view_qt.cpp src/core/resources/resources.gyp src/webengine/doc/src/qtwebengine-platform-notes.qdoc src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp src/webenginewidgets/render_widget_host_view_qt_delegate_widget.h tests/auto/widgets/qwebenginepage/BLACKLIST tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp tools/qmake/mkspecs/features/functions.prf Task-number: QTBUG-55158 Change-Id: I1d73ac9b3ca5293ad3c7e3a56f4c395da930e6f4
| * Merge remote-tracking branch 'origin/5.6' into 5.7Allan Sandfeld Jensen2016-08-022-4/+40
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty src/core/resources/resources.gyp src/webengine/doc/src/qtwebengine-overview.qdoc src/webenginewidgets/api/qwebenginepage.cpp src/webenginewidgets/api/qwebenginescriptcollection.cpp src/webenginewidgets/api/qwebenginescriptcollection_p.h tests/auto/widgets/qwebenginepage/BLACKLIST And readded newly in 5.6 enabled tests to the BLACKLIST. Change-Id: I4ab1fc54ebfaaf940df81b0d8d6bdd15cae8b7c4
| | * Fixup Back/Forward short-cutsAllan Sandfeld Jensen2016-07-222-4/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove backspace short-cut, Chromium will already handle that if it is standard on the platform. Also we were not triggering on Back/Forward buttons due to those being mapped to prev/next tab item in Qt. Task-number: QTBUG-54546 Change-Id: I9a4f48c718c5685ca9ca1b032d8b04409ac622ca Reviewed-by: Jesus Fernandez <jesus.fernandez@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@qt.io>
| * | Merge remote-tracking branch 'origin/5.6' into 5.7Allan Sandfeld Jensen2016-06-279-5/+19
| |\| | | | | | | | | | Change-Id: Ic6686df8f82f710a3441501b7eeaffe69fbcbdf7
| | * Remove infinite loop when loading history.Michael Bruning2016-06-202-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | Add a flag to let checkForExpired remove the entries directly. Task-number: QTBUG-54222 Change-Id: Iddac9e50f645d74b95d0ea13ed76d7f858ddd137 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | * Make all examples high-dpi awareKai Koehne2016-06-207-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | Setting the Qt::AA_EnableHighDpiScaling attribute makes sure that the scrollbars are scaled, and that the default zoom level is sensible. Task-number: QTBUG-54113 Change-Id: I0ae7eb97cb9e2824e7f9b92d77cf2986cac66685 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Add View Source API and make the feature available from context menuPeter Varga2016-08-022-16/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ChangeLog][QtWebEngineQML][QQuickWebEngineView] View Source feature is now supported [ChangeLog][QtWebEngineWidgets][QWebEnginePage] View Source feature is now supported Change-Id: Icc16da71fc6ec95880897fc9744dd8be8c004e00 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Add back "Open Link in New Tab" to Demobrowser's context menuPeter Varga2016-07-132-6/+1
| | | | | | | | | | | | | | | Change-Id: Ied45cf010aef87e319a01274399938cff7c1a53e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Add widget based spellchecker exampleMichal Klocek2016-07-0216-0/+612
|/ / | | | | | | | | | | | | | | | | | | This example demonstrates how to convert 'dic' dictionary files into 'bdict' binary format using qwebengine_convert_dict tool. It shows how to implement language selection. It adds two dummy dictionaries. Change-Id: Iffc23a0ed4e51cbc749f666c8f565fafb3739a9b Reviewed-by: Michael Brüning <michael.bruning@qt.io>