summaryrefslogtreecommitdiffstats
path: root/examples/webview
Commit message (Collapse)AuthorAgeFilesLines
* Use SPDX license identifiersLucie Gérard2022-06-103-124/+6
| | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: I0f719de9e6e1fd4a7c50a247831e5a768e08df14 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit e87bc62fc62974529c2cdf420d8711acfde5504a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Improve example CMakeLists.txtKai Köhne2022-02-191-11/+4
| | | | | | | | | | | | | | | | | - Remove "# generated from xyz.pro" comment from pro2cmake - Remove automatic use of CMAKE_AUTORCC - Only opt into CMAKE_AUTOUIC if .ui files are involved - Remove explicit setting of CMAKE_INCLUDE_CURRENT_DIR - Combine multiple find_package(Qt6 ... calls) - use REQUIRED COMPONENTS - sort components alphabetically - Fix wrong indentations - Use (only) one empty line after multi-line commands Pick-to: 6.3 Change-Id: I609752912b9dfc8b767789ae646431d620e3e8ad Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Switch examples to build as isolated sub-buildsAlexandru Croitor2021-12-151-1/+1
| | | | | | | Pick-to: 6.2 6.3 Task-number: QTBUG-90820 Change-Id: I6b186b247dc863a64be6a2d02d6b64056a52754c Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* Raise cmake_minimum_required to VERSION 3.16 in examplesJoerg Bornemann2021-09-201-1/+1
| | | | | | | Pick-to: 6.2 Task-number: QTBUG-95636 Change-Id: I2ed3eb7c0e2cb1352c89c89d2fc4d6053ff5cd80 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* Port example to qt6Michal Klocek2021-07-075-187/+33
| | | | | | | | | Use qqc2 instead of qqc1. Drop styles. Fix progress bar layout. Pick-to: 6.2 Fixes: QTBUG-88620 Change-Id: I893704cd9718de9f8b836b35bdbd8a5931fd65d9 Reviewed-by: Christian Strømme <christian.stromme@qt.io>
* Add cmake buildMichal Klocek2021-06-022-0/+63
| | | | | | | | | Update dependencies to latest shas. Fix compilation issues. Task-number: QTBUG-88620 Change-Id: I0c82431e6ffd142302cce12e6ee74d2139e1e42f Reviewed-by: Christian Strømme <christian.stromme@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Replace 0 with nullptrAllan Sandfeld Jensen2021-02-021-1/+1
| | | | | Change-Id: I9d225accdf7d7f91efd189588453d2a39f2a11e7 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Do the pre-initialization steps after the plugin paths are setAndy Shaw2021-01-121-2/+2
| | | | | | | | | | | | | Since initialize() is called before the creation of the application then we need to delay the actual implementation until the paths are set. Therefore a prehook is used for the application object so that these can be done before the application finishes initalizing. For static builds we call this function right away, thus requiring the need for the QtWebView::initialize() function to still exist. Pick-to: 5.15 Change-Id: Ic4633cd1e96c39bc12f475fdd22c56646ea7ca10 Reviewed-by: Christian Strømme <christian.stromme@qt.io>
* Fix WebView::initialize() call orderMichal Klocek2020-04-152-2/+2
| | | | | | | | | | | | | QWebEngine should be initialized before QGuiApplication. The other way around is deprecated. Update docs and example. Initialize call is also used by darwin plugin but it should not matter in this case. Fixes: QTBUG-80912 Task-number: QTBUG-76391 Change-Id: I1037346707a3f4e24286ccaba25f8e5c3301ef36 Reviewed-by: Christian Strømme <christian.stromme@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Fix URL in minibrowser exampleChristian Strømme2018-09-261-1/+1
| | | | | | | | | | | Make the URL to qt.io use HTTPS explicitly, as e.g., newer versions of iOS and Android have stricter rules for clear text communication, and on these platforms resource that require clear text communication will not be loaded. Task-number: QTBUG-70281 Change-Id: I8b117e6f8d48f4b52361248f9681584e73980db1 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* The additional ServerName parameter is handled in qtmain_winrt nowadaysOliver Wolff2018-01-101-3/+0
| | | | | Change-Id: I19e2770f2207549a1094045de6d80076b7578afe Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* Fix outdated BSD license headerKai Koehne2017-10-184-12/+52
| | | | | Change-Id: Ie9b4cdca124cb25117dfbc90bd30e857f7e19993 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Fix outdated FDL license headerKai Koehne2017-10-181-5/+5
| | | | | Change-Id: Idfcfe81e949d9e284c6029bfd3a8a7f66b06e331 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Remove support for WinRT 8.1 and Windows Phone 8.1Maurice Kalinowski2017-01-191-1/+0
| | | | | | Change-Id: I13bc3834a5bebea8a2ec2f55fda06321543ab055 Task-number: QTBUG-57288 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Remove WebView and UIWebView backendsJake Petroules2017-01-111-1/+1
| | | | | | | | Our minimum deployment target is now macOS 10.10 and iOS 8.0 in Qt 5.9, so the WKWebView backend will always be used instead. Change-Id: Ifd24948954cc273fee458c212b1801dc4a5aca45 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Add a WKWebView backend.Jake Petroules2016-06-222-0/+33
| | | | | | | | | | This replaces the WebView and UIWebView backends for macOS 10.10 and iOS 8.0 and above. Task-number: QTBUG-48996 Change-Id: Ief1e369365b3324f747973da1d72c862aa204626 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com> Reviewed-by: Christian Stromme <christian.stromme@qt.io>
* Print browser load errors to the console in the minibrowser.Jake Petroules2016-06-221-1/+5
| | | | | Change-Id: I4bb788224a2b0c235476380175d6e5d16ef40551 Reviewed-by: Christian Stromme <christian.stromme@qt.io>
* winrt: Cleanup capability specificationMaurice Kalinowski2016-04-211-2/+0
| | | | | | | | This is added by default with 34e0e908c896126138a95abdeba7456499d0fb68 in qtbase. Change-Id: I3e24dce46604b3bc52e1688731cfcb091df5f8d1 Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
* iOS: Add custom plist which disables ATS for the minibrowser.Christian Strømme2016-03-042-0/+43
| | | | | | | | Disabling App Transport Security is necessary if we want to load non-https urls, e.g., qt.io. Change-Id: Ib4ed55c2787968946f35700f521f8a81e96d1443 Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
* Fix progress in minibrowser example.Christian Strømme2016-03-021-1/+1
| | | | | | | | The progress can never be more then 100, so the condition would always be false. Change-Id: Ia75ddd5298d8e0afcc1314d670a656071143c321 Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
* Remove deployment.pri from the minibrowser exampleChristian Strømme2015-11-242-32/+3
| | | | | | | | | | | The minibrowser example was created using the Qt Creator templates, which includes hard-coded install paths defined in deployment.pri. For user applications that might make sense, but it doesn't for Qt examples, instead we should install it into Qt's example directory. Task-number: QTBUG-49431 Change-Id: Ia4c33574547a17a186125f10b3eaa14512f81dc8 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
* declare dependencies properlyOswald Buddenhagen2015-11-121-1/+1
| | | | | | | | | don't try to build the example when the library is missing. also, don't try to build the whole module if it will be entirely empty. Change-Id: I4de9b6c2454bbfea60dc6b747cd995cfab6c7617 Reviewed-by: Andrew Knight <andrew.knight@intopalo.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
* be a tad more selective what is declared in EXAMPLE_FILESOswald Buddenhagen2015-11-122-1/+2
| | | | | | | | the automation covers everything else. Change-Id: I43ceca984d44779bd950a362d237d535ddb53c00 Reviewed-by: Andrew Knight <andrew.knight@intopalo.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
* Don't show progress indicators on Windows runtime.Samuel Nevala2015-11-091-2/+6
| | | | | | | Windows Runtime webview reports only indeterminate loading pregress. Change-Id: Ia007e462f68671039ea4708784bbebe9f1142679 Reviewed-by: Andrew Knight <andrew.knight@intopalo.com>
* Add a note about QtWebView::initialize() on the example page.Christian Strømme2015-09-242-1/+9
| | | | | | | | | | Users should call QtWebView::initialize() in their application to ensure that the WebView module works correctly on all platforms. The initialize() function is already mentioned on the landing page, so this is just to make the requirement is even more visible. Change-Id: Ieb1e916c8e155171a9330c5f36cb9198fdb5a9e0 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
* Add support for Windows RuntimeAndrew Knight2015-08-252-1/+7
| | | | | | | | Now that WinRT uses XAML-based windows, it can support creating native WebView controls. Change-Id: I04361956eba9de5b5d41fcc6b57a9772b49f6a2b Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
* Add initialize functionChristian Strømme2015-08-102-21/+3
| | | | | | | | | | | | | | | | | | The initialization function will set-up any platform specific requirements needed to display the WebView correctly. Initially we tried to avoid this, as it's not a very nice approach, and it was only needed when QtWebEngine back-end was the used (see: QtWebEngine::initialize()). Since we now require special set-up for OS X as well, it has become unreasonable to expect that the user should implement this logic in their application and that it's more convenient if we provide a uniform solution to make the WebView work on all platforms. The implication of this change, is that we now actually expose a C++ API and will therefore need to export the module again (making it a non-internal module). Change-Id: I87678db7cd50b25465bcf623c008f04a4cffd7df Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
* Make examples return -1 on load failures.Friedemann Kleint2015-08-031-0/+2
| | | | | | | | Avoid hanging processes and empty windows in case some module is not installed. Change-Id: If25c9b5338a388b74e7a8603265079af6305a516 Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
* Doc: Updated the example screenshotVenugopal Shivashankar2015-06-093-1/+1
| | | | | Change-Id: I94af206a7e96bb13ca13ecdb0f1698a54f6ba2c1 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* Merge remote-tracking branch 'origin/5.4' into devChristian Strømme2015-02-181-6/+6
|\ | | | | | | Change-Id: Ic6b7965ae297c462b2b89e5ba373ac204d3da6ad
| * Update FDL headersChristian Strømme2015-02-171-6/+6
| | | | | | | | | | | | | | The documentation (FDL) headers were not updated. Change-Id: I8809a2e9c908c5b195e45499d204a6a831cb99e4 Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.4' into devChristian Strømme2015-02-159-12/+172
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/webview/qquickviewcontroller.cpp src/webview/qquickviewcontroller_p.h src/webview/qwebview_ios.mm src/webview/qwebview_ios_p.h src/webview/qwebview_p_p.h src/webview/qwindowcontrolleritem_ios.mm Change-Id: I0454a007bf8297064045d5d193e74a08c9703f12
| * Fix license headersChristian Strømme2015-02-154-8/+8
| | | | | | | | | | | | | | | | | | | | This is an amendment to caae412c72266359d7fe5e17046e14d3c7879c1e where the copyright and license headers where first updated. This change updates the headers, also for the examples, based on the new templates in qtbase (83a5694dc21b8220bb0e5c85f24a53361b2fd478). Change-Id: Ie377e886ff823f60c8409296c7646b0ccfe81f3b Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
| * Update license headers and add new licenses.Christian Strømme2015-02-104-8/+8
| | | | | | | | | | | | | | | | Changed the copyright and contact details in the license headers and added the missing LICENSE.* files (.FDL, GPLv2 and LGPLv3). Change-Id: I836098231f97032b30f5eed431b313d17057e0fa Reviewed-by: Lars Knoll <lars.knoll@digia.com>
| * Example: Made a few cosmetic changesVenugopal Shivashankar2015-02-099-4/+164
| | | | | | | | | | | | | | | | | | | | | | - Added a progress bar to indicate the WebView.loadProgress - Added a ToolButton to stop/reload the web page - Replaced the ToolButton text with tooltip to reduce the space used. Change-Id: I3447af9ad2469d6460b3a6acbadb8d733845980f Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com> Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
* | OS X Implementation.Morten Johan Sørvig2015-02-122-1/+9
|/ | | | | | | | | | | | | | Adds implementation for the native WebView on OS X and removes the QtWebEngine as the fallback. The current implementation requires QT_MAC_WANTS_LAYER=1 QSG_RENDER_LOOP=basic [ChangeLog][WebView][OS X] Added OS X implementation. Change-Id: I2807a082c8aa519b8c3afe332996d3d454ff2383 Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
* Fix crash in minibrowserChristian Strømme2014-12-051-3/+1
| | | | | | | | This is a workaround for bug QTBUG-42929, which causes QtWebEngine to crash when going from about:blank to a valid URL in onEditingFinished. Change-Id: Ia636da841de1e0460630f2ce435fc9fe8e19dabc Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
* Fix the window title of the example.Friedemann Kleint2014-11-242-2/+4
| | | | | | | | Wire the window title to QWebView and set the application display name. Qt will then automatically append it. Change-Id: I327f0baa9ad5272691d84fd7eee3754b514daee6 Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
* Doc: Renamed the webview exampleVenugopal Shivashankar2014-11-2110-7/+10
| | | | | | | | | - Updated the subdirs project file referring the example - Updated the examples page with the new name - Moved the qtwebview-example group page to doc/src Change-Id: I53ba49103ad2bfff21a230dded456be1e88231f2 Reviewed-by: Christian Stromme <christian.stromme@digia.com>
* Fix webview example for use with QtWebEngine.v5.4.0-rc1v5.4.0Christian Strømme2014-11-212-0/+12
| | | | | | | | | | When the QtWebEngine is used as a back-end we need to call QtWebEngine::initialize() or the example will fail as OpenGL context sharing needs to be enabled. Task-number: QTBUG-42745 Change-Id: I27ffc4043f759470f4d40441e62de2ba10728a01 Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
* Doc: Add a screenshot of the new webview example.Christian Strømme2014-11-071-0/+0
| | | | | Change-Id: I18b35618351913a2cb8bb862be9dfdacce899574 Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
* Remove variable 'set but not used' warning when building the example.Christian Strømme2014-10-301-1/+1
| | | | | Change-Id: I1dbf1efc7a02c15c6eb5450b79cafba38feceb0f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Polish the example.Friedemann Kleint2014-10-215-5/+64
| | | | | | | | | | | | | - Point it to qt.io and add command line option handling - Adapt size to screen for high resolution screens and to accommodate qt.io which does not work with small windows. - Add Back/Forward buttons - Load on editingFinished (return pressed) of address field. - Handle errors in user input more gracefully by defaulting to about:blank Change-Id: I4ed4efce16b1d4739ac9e413dbe6427b5367de1c Reviewed-by: Christian Stromme <christian.stromme@digia.com>
* Fix documentationChristian Strømme2014-10-163-2/+3
| | | | | | | | | There where some missing configurations and leftovers from earlier that caused the doc generation to fail. This is only a quick build / infrastructure change. Change-Id: Iebcad3f654361c5d27bc4b1ee370f6e802378531 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
* Improve the Look&Feel of the webview exampleChristian Strømme2014-09-021-42/+25
| | | | | | | The example was not looking or behaving correctly on Android. Change-Id: Ic7e69c3cdf55e8ac4762794824ca7d9bc905cdc9 Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
* Document QUrl usage behavior.Morten Johan Sørvig2014-09-012-1/+14
| | | | | | | | | | | | Document that QUrls are used as-is and that QUrl::fromUserInput should be called when appropriate. Update the example to call QUrl::fromUserInput via a helper class. This is a workaround until QtQuick provides a fromUserInput function. Change-Id: I51f521126e50ee4d9b0223ef11f32d5576be10a8 Reviewed-by: Christian Stromme <christian.stromme@digia.com>
* Long live Qt Web View!Eskil Abrahamsen Blomfeldt2014-08-208-0/+239