summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
...
| * pdfviewer: Fix zooming of contentTobias Koenig2019-11-251-0/+1
| | | | | | | | | | | | | | | | Clear the page cache after zoom level has changed, otherwise the page content won't be rerendered with new zoom level. Change-Id: If374d65570c0ecce3a94d496d57a8e28dcbf8e0a Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
| * Add license header boilerplateSimon Hausmann2019-11-257-0/+147
| | | | | | | | | | | | | | Commercial until we have figured out the licensing :) Change-Id: Ibf60ca98cf04ee23928794a96ae33f87608c3236 Reviewed-by: Tobias Koenig <tobias.koenig@kdab.com>
| * QScroller doesn't work unless a gesture is grabbedShawn Rutledge2019-11-251-0/+1
| | | | | | | | | | | | correction to 0108ecad44e04be9d0b60f4b6b7e0fceb69ea034 QScroller was working because of a subsequent patch that tried to add pinch zooming.
| * pdfviewer example: page cache has a page count limitShawn Rutledge2019-11-252-0/+6
| | | | | | | | to limit memory usage
| * pdfviewer example: QScroller makes kinetic flicking workShawn Rutledge2019-11-252-5/+3
| |
| * Fix build with MSVCSimon Hausmann2019-11-251-1/+1
| | | | | | | | Q_DECL_OVERRIDE comes last in the declaration
| * Fix small memory leak, don't leak the QPdfDocumentSimon Hausmann2019-11-253-8/+7
| |
| * pdfviewer example: PageRenderer owns document and thread. SmoothShawn Rutledge2019-11-257-140/+136
| | | | | | | | | | | | | | PageCache renamed to PageRenderer and minimized to just being a worker thread. The UI is finally responsive, biecause the locking in QPdfDocument is isolated behind PageRenderer. ATM only renders visible pages though.
| * pdfviewer example: stop creating placeholder images in PageCacheShawn Rutledge2019-11-254-18/+14
| |
| * Fix compilationSimon Hausmann2019-11-251-3/+0
| |
| * pdfviewer example: direct inheritance from QThreadShawn Rutledge2019-11-252-11/+8
| | | | | | | | | | But either way, the UI is not as responsive as one could wish for during background rendering.
| * pdfviewer example: add threaded PageCacheShawn Rutledge2019-11-257-35/+172
| | | | | | | | thread fixes
| * pdfviewer example: add rendering statsShawn Rutledge2019-11-252-1/+27
| |
| * pdf viewer example: more typical featuresShawn Rutledge2019-11-2514-6/+230
| | | | | | | | | | | | | | zooming field for setting zoom, up/down buttons field for setting and viewing page number, up/down actions icons for toolbar actions
| * pdfviewer example: can scroll through pages and render on demandShawn Rutledge2019-11-255-19/+87
| |
| * initial single-threaded implementation of pdfviewer exampleShawn Rutledge2019-11-257-0/+264
| |
* | Fix build of simplebrowser against 5.12Peter Varga2019-11-288-0/+45
| | | | | | | | | | Change-Id: Ifbcf7f70ddbed7768e5e7b7231661a69d6d9f1a1 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Example 'LifeCycle': fix import statement and shared context warningKirill Burtsev2019-11-283-3/+3
| | | | | | | | | | | | | | | | Amends import fix f4fa4d3d34 after api review Task-number: QTBUG-80249 Change-Id: If4b2cb65e94de8c648b2c234490a6d6325615ba6 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* | Doc: Fix documentation warningsTopi Reinio2019-11-202-6/+5
|/ | | | | | | | | | | | | | Remove links to example files, as QDoc no longer treats them as linkable targets. Fix linking to WebEngineView.selectClientCertificate(). Fix missing parameter documentation in WebEngineView.tooltipRequested(). Fixes: QTBUG-79815 Change-Id: I9090d3cfb1b698a545ae54a7426bb0a4eef892e9 Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Merge remote-tracking branch 'origin/5.13' into 5.14Allan Sandfeld Jensen2019-10-225-8/+8
| | | | | | | | | | | Conflicts: examples/webengine/minimal/main.cpp src/3rdparty src/core/net/url_request_custom_job.cpp tests/auto/widgets/qwebengineprofile/tst_qwebengineprofile.cpp Change-Id: I33994024a4be5ed787800c5718a0a443b970c36d Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* Improve QWebEngineFindTextResult APIv5.14.0-beta2Peter Varga2019-10-193-6/+6
| | | | | | | | | | | | Implements suggestions from 5.14 API review: - Rename activeMatchOrdinal to activeMatch - Extend documentation - Change QML import version number to 1.10 Task-number: QTBUG-77839 Change-Id: I5eae659cfb5355af8d0c878d3b5f00654c9d6d13 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add example for QQuickWebEngineTooltipRequestSzabolcs David2019-10-1013-1/+78
| | | | | | | | | Implement an example usage in customdialogs application and extend the documentation. Change-Id: Ibc240cf94ac939335455f4eac3d52ffec2ba7ff6 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Move lifecycle docs to features pageJüri Valdmann2019-10-101-65/+2
| | | | | | | Also fix incorrect \since versions in QML API docs. Change-Id: I87b5899d4a55832dca2cd251aeb681e4bb2de2a2 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Merge remote-tracking branch 'origin/5.13' into 5.14Allan Sandfeld Jensen2019-09-243-28/+34
|\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: config.tests/glibc/glibc.cpp src/3rdparty src/core/configure.json src/core/profile_io_data_qt.cpp src/webengine/configure.json src/webenginewidgets/api/qwebenginepage.cpp tests/auto/widgets/qwebenginepage/BLACKLIST Change-Id: I3e1781048c3cb09bfbf7427dfc5dd1fec11a2b97
| * Fix snippet in notification exampleAllan Sandfeld Jensen2019-08-293-28/+34
| | | | | | | | | | | | | | | | | | | | | | QDoc couldn't find the lines asked for. Also switch example to Qt coding style for good measure. Change-Id: I8798d4e85011cb1f46ea9a051f205dc2f650eccb Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Remove usages of deprecated APIsSona Kurazyan2019-09-094-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Replaced the following deprecated APIs: QWebEngineProfile::setRequestInterceptor -> QWebEngineProfile::setUrlRequestInterceptor QWebEngineSettings::globalSettings -> WebEngineSettings::defaultSettings QLayout::setMargin -> QLayout::setContentsMargins QWheelEvent::{x, y} -> QWheelEvent::position QWheelEvent::{globalX, globalY} -> QWheelEvent::globalPosition QSysInfo::windowsVersion -> QOperatingSystemVersion::current Qt::InputMethodQuery::ImMicroFocus -> Qt::InputMethodQuery::ImCursorRectangle QDesktopWidget::screenGeometry -> QGuiApplication::primaryScreen::geometry QTime -> QElapsedTimer - Fixed the tests to compile when deprecated APIs are disabled. - Replaced the doc references to deprecated APIs with the new ones. Made the docs for deprecated APIs compile conditionally, based on deprecation version. Task-number: QTBUG-76491 Change-Id: I5c6b7c628957deb9163f0bd2b6bc31bde1c7daec Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Allow deferring QWebEngineCertificateError handlingKirill Burtsev2019-09-051-15/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | Introduce defer() method for halting URL load on certificate errors, and methods for rejecting and ignoring these errors subsequently in async manner. [ChangeLog][QtWebEngineWidgets][QWebEngineCertificateError] New methods for asynchronous decision on certificate error during load. Fixes: QTBUG-55110 Change-Id: Ib23eb568862ccc360208922a6a581f8e7edc4a7e Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* | Introduce findTextFinished signalPeter Varga2019-08-238-5/+226
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a replacement for the callbacks. Also introduces QWebEngineFindTextResult class what is common for the Quick and Widget APIs. This makes possible to provide extra information about the match, eg. the number of matches and the index of the currently highlighted match. [ChangeLog][QtWebEngine][WebEngineView] Introduces findTextFinished signal and FindTextResult type to provide extra information about the result of a text search. [ChangeLog][QtWebEngineWidgets][QWebEnginePage] Introduces findTextFinished signal and QWebEngineFindTextResult class to provide extra information about the result of a text search. Task-number: QTBUG-50420 Change-Id: Icb9737d2f596e6bc0fc5733144eeeaf2a77aab02 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
* | Use ui::CompositorJüri Valdmann2019-08-221-0/+1
| | | | | | | | | | | | | | | | Needs corresponding 3rdparty change. Fixes: QTBUG-71885 Change-Id: I791bc3da5a7a66e03470e9e05bf25a997101b018 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Add API to change download directory path and file nameTamas Zakor2019-07-053-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add functions and property to change the download directory and file name in QWebEngineDownloadItem and QQuickWebEngineDownloadItem and deprecate the path() and setPath(). Regenerating the uniquifying download filename after change the download directory. [ChangeLog][DownloadItem] Add functions and property to change the download directory and file name in QWebEngineDownloadItem and QQuickWebEngineDownloadItem and deprecate the path() and setPath(). Task-number: QTBUG-56978 Change-Id: I6e63da82a187add8bc3206cc80c8bf6865fbdd35 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Merge remote-tracking branch 'origin/5.13' into devJüri Valdmann2019-07-021-6/+56
|\| | | | | | | Change-Id: I806417dd7a6d2594a86ee49feedc4ad9ee48add2
| * Merge remote-tracking branch 'origin/5.12' into 5.13Allan Sandfeld Jensen2019-06-111-6/+56
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf src/3rdparty src/core/configure.json src/core/profile_io_data_qt.cpp tests/auto/widgets/qwebenginepage/tst_qwebenginepage.cpp Change-Id: Ie8ae4aa03881a0733ff497fff46e3f7040735650
| | * Add a close button and ensure text height fitting in tabs for quicknanobrowserLeander Beernaert2019-06-071-6/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure the text can be correctly displayed vertically by reserving some height and add a close button via a custom tabview style. This change aloso fixes the case where all tabs are closed and new one can't be created using the ctrl+t short cut. Fixes: QTBUG-75291 Change-Id: I139bb832119d56d0e0f12f054e924e5d944b91d4 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* | | Merge remote-tracking branch 'origin/5.13' into devAllan Sandfeld Jensen2019-06-069-0/+495
|\| | | | | | | | | | | Change-Id: Ib61d4087aa999ae93240be620496e60f4fa73f63
| * | Web Notifications widgets' API exampleKirill Burtsev2019-05-209-0/+495
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: If6aba0e9da1ece59c91be03ae2f56513e758f5e5 Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | | Implement page lifecycle APIJüri Valdmann2019-05-2415-0/+1064
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ChangeLog][QtWebEngine][WebEngineView] WebEngineView now supports lifecycle states that can be used for reducing CPU and memory consumption of invisible views. [ChangeLog][QtWebEngineWidgets][QWebEnginePage] QWebEnginePage now supports lifecycle states that can be used for reducing CPU and memory consumption of invisible pages. Fixes: QTBUG-74166 Fixes: QTBUG-55079 Change-Id: I7d70c85dc995bd17c9fe91385a8e2750dbc0a627 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* | | Merge remote-tracking branch 'origin/5.13' into devAllan Sandfeld Jensen2019-05-0929-46/+574
|\| | | | | | | | | | | Change-Id: I495adfcbb010ac29dc64e051c030a92d27859ca6
| * | Doc: Fix QDoc warningsLeena Miettinen2019-05-031-7/+13
| | | | | | | | | | | | | | | Change-Id: I00ec352cdea43d44388889805f1bd609a3555c4c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | Merge remote-tracking branch 'origin/5.12' into 5.13Allan Sandfeld Jensen2019-04-3014-16/+533
| |\| | | | | | | | | | Change-Id: I051052a70a6e764202a90d77fc1a0f73688d3704
| | * Simple browser example: create off-the-record profile in a lazy mannerKirill Burtsev2019-04-233-14/+24
| | | | | | | | | | | | | | | | | | | | | | | | Do not create multiple profiles immediately on start. Allows to start and run browser with default profile with 'single-process' flag. Change-Id: Idea7da8167152f718a3c2d4086ad4216d8e1b722 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
| | * Add PrintMe exampleMichal Klocek2019-04-1511-2/+509
| | | | | | | | | | | | | | | | | | | | | | | | | | | This example shows how to do simple printing with print preview. Task-number: QTBUG-53745 Change-Id: I4b1adbb9847b72928a988b5687fb13c84bb987cd Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | Enable HiDPI for customdialogs and spellcheckers examplesJüri Valdmann2019-04-242-0/+2
| | | | | | | | | | | | | | | | | | Task-number: QTBUG-75103 Change-Id: I8290ba268f30b26eafccabc889ad860e95c1bca2 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
| * | Make QtWebEngine imports consistentAllan Sandfeld Jensen2019-04-203-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Somehow on some platforms we end up with the import version of the wrong module. Change-Id: I6427f3f5375f2059d371c9a0fc035f1ec4195a49 Fixes: QTBUG-74566 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
| * | Merge branch '5.12' into 5.13Allan Sandfeld Jensen2019-04-0910-20/+20
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty src/core/renderer/user_resource_controller.cpp src/core/web_contents_adapter.cpp src/webengine/doc/src/qtwebengine-overview.qdoc Change-Id: I46be9d33b3b65d61dfa099ee72a3509afb9bd6a4
| | * Doc: Avoid auto-linking the string 'WebEngine' to the QML typeLeena Miettinen2019-04-0110-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the previous workaround (internal \externalpage command) that was used for this purpose, and replace it with a \QWE macro that expands to the string 'Qt \WebEngine'. The backslash in the expanded string instructs QDoc not to attempt auto-linking the word. Change-Id: If4e1c95423fa07479b1af055e4760a890c0ac667 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* | | Merge remote-tracking branch 'origin/5.13' into devAllan Sandfeld Jensen2019-03-299-5/+10
|\| | | | | | | | | | | Change-Id: Iab8e05beb7ede38bacaa35322d1f79cfc85cd470
| * | Merge remote-tracking branch 'origin/5.12' into 5.13Allan Sandfeld Jensen2019-03-289-5/+10
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf src/3rdparty src/core/render_widget_host_view_qt.cpp src/core/web_contents_view_qt.h src/core/web_engine_context.cpp Change-Id: I17f3a4814e88a5680dc61a6d734c171ccba00e8c
| | * Fix markdown rendering of titles in recipebrowserAlexandru Croitor2019-03-217-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apparently not having a newline before each recipe title, prevented the markdown JS renderer from rendering the titles properly, instead the titles wee unformatted and also displayed the = signs. Add the new lines. Change-Id: I8176e8f3029ca2e80114d6555bbb73696ba51509 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| | * Fix tabbing in recipebrowserAllan Sandfeld Jensen2019-03-212-5/+3
| | | | | | | | | | | | | | | | | | Fixes: QTBUG-55146 Change-Id: I034ebb3e65341b5424a24d5a143013d726d55e10 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* | | Merge remote-tracking branch 'origin/5.13' into devAllan Sandfeld Jensen2019-03-211-5/+18
|\| | | | | | | | | | | Change-Id: If771fabe97c4d75edc4627999f04f70ca1901060