summaryrefslogtreecommitdiff
path: root/examples/webenginequick
Commit message (Collapse)AuthorAgeFilesLines
* QuickNanoBrowser: Make FindBar visible in dark modePeter Varga2023-05-171-0/+14
| | | | | | | Pick-to: 6.5 Change-Id: Iec4f3db0a6dad1eb040e44b09bc0b0000714ecdb Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Anu Aliyas <anu.aliyas@qt.io>
* QuickNanoBrowser: Switch to Fusion stylePeter Varga2023-05-173-3/+3
| | | | | | | | | | | | | | | Since Qt 6, the default Qt Quick Controls style is native style on Windows and macOS. Since Qt 6.5, there is a warning to not to customize native style: "QML QQuickItem: The current style does not support customization of this control ..." Use non-native Fusion style instead, which appearance still resembles the native style and is customizable. Pick-to: 6.5 Change-Id: Ifadd74a152b739461f2ad7ef1cb9763a2974b492 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Merge recipe browser, stylesheet browser and markdown editor examplesYigit Akcay2023-04-0531-2993/+1
| | | | | | | | | | This patch merges the qtwebengine examples recipe browser, stylesheet browser and markdown editor into one single example. Pick-to: 6.5 Task-number: QTBUG-108751 Change-Id: I338707d7d3275b03bf2a2d7b65064ac91e562d7f Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Replace WebEngineAction example with a snippetMichael Brüning2023-03-3110-286/+1
| | | | | | | | | Also moves the example to the manual tests directory. Task-number: QTBUG-108751 Change-Id: Ie3fa492cfcaf61ee26ed65fa22954bb6a6532d6e Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit 23d1131577e1780de0552211a84357bcb1f63de5)
* Move custom touch handles example to manual testsMichal Klocek2023-03-229-222/+0
| | | | | | | | | | | | Move and add missing parts as snippet. Task-number: QTBUG-108751 Change-Id: I25849941700337626ca46e399fdb52264bc4659a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Yigit Akcay <yigit.akcay@qt.io> (cherry picked from commit 55f9fc348278b2aa8985ec9c1e7e092f88f68f83) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Move custom dialogs example to manual testsMichal Klocek2023-03-2243-1887/+0
| | | | | | | | | | | | | This example shows how to use dialogs, however documentation already provides snippets for that added in 3cbe59e29a. The only missing one was tooltip, therefore add missing snippet and move example to manual tests. Task-number: QTBUG-108751 Change-Id: I84eda805455fb0276046ed1089389d605a8af672 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 6bf30525ee49d270dae6a6440bc607513f21237c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Move quick minimal example to manual testsMichal Klocek2023-03-228-165/+0
| | | | | | | | Task-number: QTBUG-108751 Change-Id: I0998c46f051908855e0406e5fc7c0a422dc3eef0 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit ed76eef004dbac15f4740d33d06d2b271bf770d4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Support LTR and RTL text directions in input fieldsSzabolcs David2023-02-151-1/+3
| | | | | | | | | | Implement WebActions to temporarily change text direction directly from context menu - like Chrome does. They only work for the selected input field. Omit the "default" option since it is always grayed out in Chrome. Task-number: QTWB-67 Change-Id: I4bacbd82c6bd7261ac465eec9da3776613f98074 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* QuickNanoBrowser: Add feature permission request handlingPeter Varga2023-02-022-6/+98
| | | | | | | Pick-to: 6.5 Change-Id: Ia0d8bffa419174234e78e1359871e0dfa36b1636 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* QuickNanoBrowser: Remove usage of Quota Permission Request APIPeter Varga2023-02-021-7/+0
| | | | | | | | | This amends commit 8fd7140082e3a752ca80882a29128ffc12d12fa4 Pick-to: 6.5 Task-number: QTBUG-56354 Change-Id: I82803cf9bfab1ed5a07494ecce86722b634c204c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* QuickNanoBrowser: Remove deprecated Qt.labs.settingsPeter Varga2023-02-021-1/+1
| | | | | | | | | | | | Fixes deprecation warning: qrc:/BrowserWindow.qml:35:5: QML Settings: The Settings type from Qt.labs.settings is deprecated and will be removed in a future release. Please use the one from QtCore instead. Pick-to: 6.4 6.5 Change-Id: Ie027b243a312f148f72adfd6e68ce0f8d6e6d62c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix navigation error for incomplete URLs in webenginequick examplesMartin Negyokru2023-02-0112-3/+73
| | | | | | | | | Use QUrl::fromUserInput in lifecycle and webengineaction examples. Task-number: QTBUG-96010 Pick-to: 6.5 Change-Id: I69cbcb1db31b0766d05f751b4aede11092d078d5 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Suppress the QTP0001 policy warningAmir Masoud Abdol2023-01-271-0/+1
| | | | | | Pick-to: 6.5 Change-Id: If10e6c259d73dd1e09c4ddac0b297b856fb13502 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Disable WebEngineContext dump by defaultPeter Varga2023-01-191-0/+2
| | | | | | | | | | | | | Keep it enabled for simplebrowser and quicknanobrowser examples. Also add documentation how to enable it. [ChangeLog][WebEngineCore] Disabled WebEngineContext dump by default. Fixes: QTBUG-109040 Pick-to: 6.5 Change-Id: I4bd3c0e9eb532771f9b455863324e9dacaae884a Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Fix quicknanobrowser's popup windowMartin Negyokru2022-12-091-1/+1
| | | | | | | | | | Remove Qt.WindowStaysOnTopHint flag from nanobrowser's BrowserDialog. It makes the window immovable. Pick-to: 6.4 Fixes: QTBUG-106816 Change-Id: I21538d78360de0a422eec02ce89a465bcc306a8b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Mention WebSockets in docsSzabolcs David2022-11-031-0/+2
| | | | | | | | | | | | | | | | QtWebChannel has an example for a use case of HTML web sockets and connectivity of the native side of application. We don't need to create a new example of our own by mentioning this. However, the chat client application uses JS libraries served from remote, so we have to enable LocalContentCanAccessRemoteUrls setting to make it work out of the box in WebEngine example browsers. Desktop Chrome works the same way by default. Task-number: QTBUG-106505 Change-Id: I9020d0a09a88de16d32af063aee5d55c9837f484 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Polish the nano browser exampleFriedemann Kleint2022-09-0810-30/+54
| | | | | | | | | | | - Use QCommandLineParser - Fix the organization name - Use modern QML type registration (Utils as a singleton) instead of context properties Pick-to: 6.4 6.3 6.2 Change-Id: Ibbe93dffd685ddd2e5f2d01852e006c4c47d9713 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Change the license of all CMakeLists.txt and *.cmake files to BSDLucie Gérard2022-08-268-8/+8
| | | | | | Task-number: QTBUG-105718 Change-Id: I2ad190e5536cdbdc8d2656e61892545d66911a02 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Add license headers to cmake filesLucie Gérard2022-07-078-0/+24
| | | | | | | | | | | | CMakeLists.txt and .cmake files of significant size (more than 2 lines according to our check in tst_license.pl) now have the copyright and license header. Existing copyright statements remain intact Task-number: QTBUG-88621 Change-Id: I118bd63694cfe2c9a413af4a38828a31727f8e86 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Use SPDX license identifiersLucie Gérard2022-06-2255-2534/+110
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: I869ffda1080e283f231eb0dc4477b260f2054d99 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Examples: Use REQUIRED COMPONENTS where possibleKai Köhne2022-05-231-1/+1
| | | | | | | | | This will result in a better error message if the components are not available. Pick-to: 6.3 Change-Id: Ib691643a9562981863eab5c27ce436814858e2e9 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Quick: Add support for replacing touch handles with delegatesBalazs Egedi2022-05-049-0/+337
| | | | | | Task-number: QTBUG-85043 Change-Id: I1c87aff352e07eb309d5ba8747b9e50a191d478e Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* CustomDialogs: Make custom input fields readable in dark modePeter Varga2022-03-292-0/+22
| | | | | | | | Also set hidden characters for custom password field. Pick-to: 6.3 6.2 5.15 Change-Id: I8512a6a4215035e21a66aa5564aeb3ba886a900b Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* CustomDialogs: Make dialog titles and messages visiblePeter Varga2022-03-294-1/+5
| | | | | | Pick-to: 6.2 6.3 Change-Id: Ibb41eb1a536b49cfb40ba037a56d55b11fd6e618 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Improve examples CMakeLists.txtKai Köhne2022-02-256-58/+45
| | | | | | | | | | | | | | | | | - 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: I09083474432ce171e8ee1e28120b062f2ef3c052 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-6/+6
| | | | | | | Pick-to: 6.2 6.3 Task-number: QTBUG-90820 Change-Id: I8539fee3ea7311acf9ee4e736fb19e6ff595fcae Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* Remove OTHER_FILES from quicknanobrowserMichal Klocek2021-12-021-7/+0
| | | | | | | | | Refereed resources are already referenced by qrc file. Fixes: QTBUG-71277 Pick-to: 6.2 Change-Id: Ibaad55aba529c87b8c8dba46bd3b1a3d7a819960 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Add .qmproject file for examples containing .ui.qml filesThomas Hartmann2021-11-162-1/+46
| | | | | | | | | | If an example contains ui.qml it should also have a .qmlproject file for Qt Design Studio. The id 'item' is not allowed in ui.qml files. Pick-to: 6.2 Change-Id: Ib01d22b361c00f67062f97af52489e9704aaf927 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Doc: Remove broken homepage link from markdowncss attributionLuca Di Sera2021-11-082-2/+1
| | | | | | | | | | | | | | | | | | | | | | QtWebEngine uses Keving Burke's markdowncss for two of his examples. An attribution file is provided for both uses, pointing to the homepage of markdowncss "https://kevinburke.bitbucket.io/markdowncss/". Nonetheless, the project is currently unmaintained and the homepage doesn't exist anymore, meaning that the link to it is broken. As there is not a reachable homepage anymore, the "Homepage" key for markdowncss attributions was removed from the attribution files. A link to the same page was changed to the link to the bitbucket repository, which is still reachable, in the documentation for the affected examples. Task-number: QTBUG-96127 Pick-to: 6.2 Change-Id: Idd6c163eebeb2a2292ae76a73289fda5faa12b0a Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Minor. Cleanup qt6_add_resources usageMichal Klocek2021-10-286-7/+7
| | | | | | | | We should not use qt6 prefixed functions in examples. Pick-to: 6.2 Change-Id: Ibf2618ef4f64b560decb219527d619aad680f216 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Add onTouchSelectionMenuRequested QML handlerBalazs Egedi2021-10-266-1/+162
| | | | | | Task-number: QTBUG-85043 Change-Id: Iecd2f5ae20fcf031937a1d44cc154f2e2a3ff52f Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Doc: Fix broken attributions to the Public DomainLuca Di Sera2021-09-301-1/+1
| | | | | | | | | | | | | | | | | | | | | The attributions generated trough `qtattributionscanner` support generating links to SPDX licenses. Four such attributions used a `LicenseId` of `DocumentRef-PublicDomain`, which is a non-existent license. Indeed, the SPDX project seems to shy away from making a single license representing all Public Domain attributions, preferring to make a database entry for each Public Domain attribution. To avoid the broken link, such attributions were modified to use a dejacode LicenseId, which has a catch-all Public Domain entry, as suggested by Kai Köhne. Task-number: QTBUG-96127 Pick-to: 6.2 Change-Id: I88e0048c08d6099521e44e74ad7f0e8b3d77b907 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Do not require widgets for quick examplesMichal Klocek2021-09-273-17/+2
| | | | | | | | | | | We needed widgets to get qqc1 styling, since we now use only qqc2 drop that requirement. Fixes: QTBUG-96771 Task-number: QTBUG-95367 Pick-to: 6.2 Change-Id: I7338cd04885069169fef1c4bca17e0777b11de8c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Rename Quick examples' folder from webengine to webenginequickBalazs Egedi2021-09-13116-0/+9530
Fix webengine directory path in project files and comments Pick-to: 6.2 6.2.0 Change-Id: I06ed9ee41111e7135fa9feb152ad2a5eb2262b76 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>