aboutsummaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Remove qml-i18n example in qtdeclarative repoAlexandru Croitor2025-11-0315-245/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The qml-i18n example and the qtdeclarative repo itself depend on the LinguistTools CMake package, which is not available while building qtdeclarative. This results in: - missing build coverage for the example - a cyclic dependency, because qtdeclarative depends on qttools (because of LinguistTools), and qttools depends on qtdeclarative (because of qdoc needs) - we try to find a module that will never be available, unless qtdeclarative is built together with qttools in a top-level build - in certain cases, if the top-level build fails early enough, the cyclic dependency causes reconfigurations to fail Remove the example, the lookup of LinguistTools, and the linguist doc references to avoid all these issues. Replace the qt_add_translations reference in the docs of the QQmlApplicationEngine class with a snippet copy. Pick-to: 6.8 Task-number: QTBUG-141465 Change-Id: Id88603a3753f53dfac9f350e981073effda15eb1 Reviewed-by: Masoud Jami <masoud.jami@qt.io> (cherry picked from commit 5a1610444562ed90280ff666c4474e569d87ded8) Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Doc: Revise File System Explorer exampleAndreas Eliasson2025-10-291-45/+47
| | | | | | | | | | | | | | * Re-arrange and add section headers to adhere to the app template. * Replace first-person plural (we) with either third-person singular (the example) or second-person singular (you). * Add qdoc links to C++ or QML entities. Fixes: QTBUG-137898 Pick-to: 6.9 6.8 Change-Id: Ib61ca9beac1bafb4e4e5f8fcc6475093b313768e Reviewed-by: Jerome Pasion <jerome.pasion@qt.io> (cherry picked from commit 8a65f87fc1e491216de5bac047d218a074340ef9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Examples: Stop using version numbers with QML modulesSze Howe Koh2025-10-288-15/+2
| | | | | | | | | | | | | | | | | | | | | | | Continues 2d44365f69b9bc946d085c6b149e2ac319700265 and b7f448f8647a9a118cee2d79d446194b20d4b335 * Qt 6.0 enabled and encouraged users to import QML modules without specifying a version number * Qt 6.5 enabled and encouraged users to create QML modules without specifying a version number With this approach, there is little benefit in specifying QT_QML_SOURCE_VERSIONS, especially in an example module that is not consumed by external software. It does not need to worry about compatibility/versioning. Task-number: QTBUG-89033 Task-number: QTBUG-140406 Change-Id: I7f83dc7430180b79b70c75e7ce7b3aef46a028ae Pick-to: 6.8 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit bd4e0441688758d7e73aef43bd8633d68370f7f7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Android: update Qt Quick for Android examples to SDK 36Rami Potinkara2025-10-234-8/+8
| | | | | | | | | | | This patch updates qtdeclarative examples to use SDK 36 as a target and compile version SDK. Task-number: QTBUG-138552 Task-number: QTBUG-138549 Change-Id: If655c6654790b4be3704325aceca6df4947362d4 Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io> Reviewed-by: Rami Potinkara <rami.potinkara@qt.io>
* Adapt to reuse version 6Lucie Gérard2025-10-231-0/+8
| | | | | | | | | Task-number: QTBUG-140916 Pick-to: 6.8 Change-Id: I7c3e50c277f28a9af9347fcf61e205187334be2f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 2cc0302d412bde1353155d1972bcca6a0aa1ef7d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Ensure that the right grid at least have one columnJan Arve Sæther2025-10-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | If the initial window width was so large that the inital layout was determined to be the "largeLayout" (wider than 450 pixels), then the binding columns: Math.min(Math.round(width / 130), 6) initially resulted in 0 columns because the width was initially evaluated to be 0, which caused the grids implicitWidth to be 0 (because it couldn't fit any items when columns was 0). Hence, it was "deadlocked": it didn't add items because columns was 0, and it didn't increase columns because it's width was 0. An item in a layout with implicitWidth == 0 will always have lower priority to grow than items with a larger implicitWidth - hence the grid was stuck at width == 0 Pick-to: 6.8 Fixes: QTBUG-140533 Change-Id: I558463ac33db36fa7eb8df4c70adc94f90c69e8f Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit cecd690d60dcdadca21e06f0a9edc80acc8fe9ea) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Flat Style example: Split CMake project into multiple QML modulesSze Howe Koh2025-10-174-20/+45
| | | | | | | | | | | | | | | | | | | | | Let the CMake structure reflect the existing module structure while making use of the auto-generated qmldir files. The qmake project and Qt Design Studio project are unaffected as they continue using the manually-written qmldir files. Drive-by edits: * Renamed the (unused) URI of top-level module to disambiguate it from the module that contains the actual styling code: "flatstyle" -> "FlatStyleApp" * Updated the docs to talk about QML modules instead of plugins Task-number: QTBUG-132922 Change-Id: I163a6c6a86a4eaf210a18433e6e5ea1f1fc67dd2 Pick-to: 6.8 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit ad65c8d89fd67cc11f04d8d3019149e98466c9fc) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Avoid showing content beneath status bars in wearable exampleAssam Boudjelthia2025-10-013-1/+6
| | | | | | | | | | | | | | | | | | Instead of only moving the demo indicator and header slightly to the top when no page is selected or demo mode is inactive, hide them altogether so thay they don't end up showing under the system bars on Android. Also, for flickable pages clip their content so they don't end up scrolling to the top underneath the header and showing partially below the system bars. Task-number: QTBUG-138022 Change-Id: I31da83ce5978dc1cab63cfe39d53f2d2c72088a9 Reviewed-by: Rami Potinkara <rami.potinkara@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit c4e98e618e4fca4f850a859d5ef4f04384d575bc) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Account for safe margins in scenegraph vulkan exampleAssam Boudjelthia2025-09-301-1/+5
| | | | | | | | | Fixes: QTBUG-140544 Pick-to: 6.10.0 Change-Id: I951d3bae73157ccf2cfcf549b506a44651719243 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit 2cee3a18de7c568830532adeda48821af46e19ab) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Bump version to 6.10.1Jani Heikkinen2025-09-294-4/+4
| | | | | Change-Id: Id41b521ddb214db785f5c4dff4d5b3621564de00 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Gallery example: Brush up the .cpp fileFriedemann Kleint2025-09-111-24/+30
| | | | | | | | | | | Use modern string literals and replace #if-defery by a check on QOperatingSystemVersion::currentType(). Pick-to: 6.9 Change-Id: I319b6c7665a4c4cadd7d1e711d8527f79ca35261 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit a6da6b3acaf6016893e66e5788aacc5adb9a117a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Spreadsheets example: Bump minimum required Qt versionSze Howe Koh2025-09-111-3/+3
| | | | | | | | | | | | | Amends 9601b74dabed53e93a7a5144d4c1fadb7876db18 The example no longer runs with Qt 6.9 or older as it uses the new (Horizontal|Vertical)HeaderViewDelegate types. Change-Id: I8430f4e9a48ddc9f72b20a4e998fde21480c4032 Pick-to: 6.10.0 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit 130d46f2c76433f59357e9ca29b8a04b8fbf7a7a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Docs: Update existing and add missing links to online Java docsNicholas Bennett2025-09-083-24/+22
| | | | | | | | | | | | | | | | | | -Updated QtQuickView and QtQuickViewContent links to new pages. -Added links to QtQmlStatus Enum and QtQmlStatusChangeListener interface classes. -Removed the qdoc QtQuickView file. -Updated links in examples and the main Qt Quick for Android page. Task-number: QTBUG-127747 Fixes: QTBUG-138917 Fixes: QTBUG-123106 Fixes: QTBUG-135474 Pick-to: 6.10.0 6.9 6.8 Change-Id: I61a64c8637c222290e4c630d75d579f6bb23886c Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io> (cherry picked from commit ba9f204e12cd0f3dd2ed15d277bbf5cfefc6f2f1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Add some notes about PathText usage in Quick ShapesEirik Aavitsland2025-09-061-0/+1
| | | | | | | | | | Note the expected fill rule, as defined by TrueType, and explain that if the stroked outline looks bad, it's the font's fault. Change-Id: I8c4c7d319c96d2514c3b11f27a7e85b7c408a79d Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> (cherry picked from commit 815cd44fbb6497a0551a24578ad9a63bfce8531a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Build flexboxlayout example when building examplesJan Arve Sæther2025-09-063-0/+17
| | | | | | | | | | Disable for INTEGRITY AND VXWORKS as it is currently not supported for these two targets Change-Id: I7eb21d5c348f7e29c2c99cede30a8e627036b220 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io> (cherry picked from commit fbd10cac80ffa1d59b58f553926d39e3c89aaa48) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* texteditor: Change the HTML to use unordered lists for linksOliver Eftevaag2025-09-031-11/+12
| | | | | | | | | | | The text layout in this example has annoyed me for a while. I liked it better when each link was a list item, which used to be the case before a96871eac888e0c01b29d092bafa80755f1fb47a. Change-Id: I68a6570dbc6c30e63b9d5b8b8079c9a58ab4e728 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit 90b049ba2639f86e7910d416b03248530d1f47ba) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Docs: Update Qt Quick for Android Example documentationNicholas Bennett2025-08-215-16/+83
| | | | | | | | | | | | | | | | | | | | -Fixed the path to the example. -Reduced the example image resolution to improve the layout. -Explained that the QML is defined in main.qml and second.qml. -Include XML layout snippets and info. -Added the imports for the qml types to the snippets and explained them. -Added a link to the Qt Academy course. Fixes: QTBUG-138219 Change-Id: I9d59bc1b5b63a3d6a8230cdd83b99efd886744d5 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit 07a6e941a5c278cb4dd8755693c982807eff517e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Rename flexboxlayout example directory in consistent with othersv6.10.0-beta3Santhosh Kumar2025-08-153-0/+0
| | | | | | | Change-Id: Ie189960af25a33f0dee54fbd49213f9d5eab5891 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit 5b21e3c72bbf41420735b921576b008f8a4062e6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update svgtoqml generated examplesEskil Abrahamsen Blomfeldt2025-08-1312-14/+378
| | | | | | | | | | | The svgtoqml tool has been updated, so we need to update its generated files as well. Change-Id: Ie58653c35e99e0c1119a9bf64d803371d31261e5 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io> Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io> (cherry picked from commit b7a05428d4d003781e7e8bbf47a1745887bd9aae) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix runtime error in the flexboxlayout exampleSanthosh Kumar2025-08-121-1/+1
| | | | | | | | | | | The Text::wrapMode has been referenced incorrectly as Text::wrap and its corrected in this patch. Fixes: QTBUG-137733 Change-Id: Ieb1ab02e19bc929f103443f0845a8980daceb245 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io> (cherry picked from commit c2ce31c44f1e28a94f7e9b2a28d94a02584b50ae) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* spreadsheet example: Repair cherry-pick confusionFabian Kosmale2025-08-071-1/+0
| | | | | | | | | | | The cherry-picks went in in the wrong order, leading to a duplicate pragma. Amends df51c40109fe573363da115092918b1940fb0d72 Fixes: QTBUG-138899 Change-Id: I54aeb6d0915e22baaa698e0b5c36c013fac45e8e Reviewed-by: MohammadHossein Qanbari <mohammad.qanbari@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* graph example: use qt_add_shaders with CMakeLaszlo Agocs2025-08-051-6/+14
| | | | | | | | | | | | | | Like other examples already do. It would have prevented (at least when CMake is used, not qmake) problems like in the associated bug report where .qsb files from newer versions were cherry picked to older Qt branches that cannot load them. Pick-to: 6.9 6.8 Task-number: QTBUG-135407 Change-Id: I25bf69139de13a70e3682865dd779e0a5ab05e28 Reviewed-by: Andy Nichols <andy.nichols@qt.io> (cherry picked from commit d6878e0a27c2cf818b07d4735621e2e82d018b11) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* filesystemexplorer: Provide proper metadata for macOSKai Köhne2025-08-053-9/+20
| | | | | | | | | | | | | While at it, also remove hardcoded application version in main.cpp: Qt can retrieve this from the application metdata. Also use camel-case for the project name, according to https://contribute.qt-project.org/quips/13 Change-Id: If73fd741e330b66ae5367a61c65ccc65653cdab6 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 305d65ab874dee73902e9f5fb722077e1526ab75) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* sg: Fix culling in layersLaszlo Agocs2025-07-231-4/+7
| | | | | | | | | Pick-to: 6.9 6.8 Fixes: QTBUG-136611 Change-Id: If2a0a0365ca24360d850ffce98c0bec4a3961976 Reviewed-by: Jonas Karlsson <jonas.karlsson@qt.io> (cherry picked from commit e32d335c8ff6a78d0601453b8cd805b097faa26f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* spreadsheets example: Configure qmllintFabian Kosmale2025-07-231-0/+2
| | | | | | | | | | | | | The example is now warning free, so we can configure qmllint to fail if there is any additional warning. This is unfortunately not enforced in CI yet, as the all_qmllint target is (intentionally) not part of the all target; so we don't run qmllint in CI so far. Change-Id: Ib179364ac5bda033ad6a2c3d87bc3738a98d1489 Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io> (cherry picked from commit ef84bfb5e8becf5a89840c6e6247333fe415718d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* spreadsheets example: Fix warnings (and code)Fabian Kosmale2025-07-236-35/+38
| | | | | | | | | | | | | | | - Use qualified lookups - Set the ComponentBehavior pragma where needed - There's no implicitRowWidth, use implicitRowHeight - Query styleHints from Application, where it has the correct type, instead of from the global Qt object, where it's only known as QObject (as it needs to provide something even when QtQuick is not available) - Remove unused import Change-Id: Ia4ff94aa8f66754d0a374ade7ff6c8cad4329530 Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io> (cherry picked from commit 728028280a6ed10191a14918b3b87acf8e2bd4d5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Move SPDX header comment back to the top of the fileFabian Kosmale2025-07-221-0/+1
| | | | | | | | | | Amends 728028280a6ed10191a14918b3b87acf8e2bd4d5 Change-Id: Id65cca4a2189e798ae99c6997bdcbb0a6df2f786 Reviewed-by: MohammadHossein Qanbari <mohammad.qanbari@qt.io> Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io> (cherry picked from commit 22b08c7348a58cc0f492de8ea0d20513bd48e6cc) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* FileSystemExplorer: Add missing importFabian Kosmale2025-07-181-0/+1
| | | | | | | | | | | | | | | When running on the example, qmllint would complain that it doesn't know about Qt.RightEdge (and BottomEdge). The reason for that is that the global Qt namespace is only exposed by the global Qt object from builtins. Controls doesn't actually expose that one, so we need to import QtQml (QML would work, too, but that's mostly internal). Fixes: QTBUG-138171 Change-Id: I28004e1d36ae6d07a1a01a72ecf716b17ca5b9ec Reviewed-by: Dennis Oberst <dennis.oberst@qt.io> Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io> (cherry picked from commit 70a111d05fea4d6dbcdcbe525be4adc071951c23) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QtQ4A: Update Gradle and Kotlin plugin versions in examplesOlli Vuolteenaho2025-07-166-6/+6
| | | | | | | | | | | | Gradle 8.10 -> 8.14.2 Kotlin Android Gradle plugin 2.1.0 -> 2.2.0 Task-number: QTBUG-137782 Change-Id: I62b54d2730b1fc48139057d1a4ef0ce4061aaeb0 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Rami Potinkara <rami.potinkara@qt.io> (cherry picked from commit 3837355aeddac53e9d165751ecd516c3e49fbaae) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Revert "TextEditor example: add actions to built-in context menu, remove ↵Mitch Curtis2025-07-072-15/+55
| | | | | | | | | | | | | | | | | | custom menu" This reverts commit e5824ea91bde8d361ca5e1a2939a892870db0622. Reason for revert: dfcde3ea4d8a81d511cce5fb5eccdbb47e92d2c7, which this requires, causes a regression: QTBUG-134903. The feature will be post-poned to a later version instead. Also amends da064518e463128a75f7dfaba23cda0c1961ca55 in order to keep it working after a small conflict. Change-Id: I339e1afc77b11bf446d04aad5aae933c8c1f6b45 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit 8308e8180ba568c1a63b32ac0e875920b789590f) Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
* Gallery example: Add missing controlsMohammadHossein Qanbari2025-06-2510-4/+549
| | | | | | | | | | | | The previous gallery example was missing several controls, which limited its usefulness for demonstration and testing purposes. This patch adds the missing controls, ensuring the example now provides a comprehensive overview. Change-Id: I79115bfffd581ca20af1c2a206a145c5362311bb Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit 3315f44c4c11bf225b46a56eae5d59f8c9176f87) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Gallery example: Add disable optionMohammadHossein Qanbari2025-06-2125-20/+56
| | | | | | | | | | A "disable" option has been introduced. This allows users to view the disabled state of all controls. Change-Id: If2fa5b673ac9db7acf805203046d111dda13f435 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit 2a1aff4aa01b3f62cc88754e66f1df5a6da1724b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update SortFilterProxyModel in Gallery exampleDilek Akcay2025-06-173-19/+16
| | | | | | | | | | | | SortFilterProxyModel has been replaced with the new version as the updated SFPM includes QML support which was not available in the previous version. Change-Id: I9e48b96810f6f2d6f0f1557f7003b7fb274d39ca Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io> Reviewed-by: Pierre-Yves Siret <gr3cko@gmail.com> (cherry picked from commit e46adf6badd89f3afed548bba6174155f1c211d1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Introduce SearchField for Quick ControlsDilek Akcay2025-06-015-0/+64
| | | | | | | | | Add a new QQuickSearchField as part of the Qt Quick Controls to simplify implementing search functionality for lists of items. Task-number: QTBUG-126188 Change-Id: I634131161447616a2d66e7f301bd8a24adac2d7f Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
* attachedstyleproperties: Add safe area padding to custom ToolBarTor Arne Vestbø2025-05-311-0/+5
| | | | | Change-Id: I15adb570c3d04535712bbffdee5b2237a4809365 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* spreadsheets: Make HeaderToolBar a regular ToolBarTor Arne Vestbø2025-05-311-54/+47
| | | | | | | | | Which gives us safe area padding automatically. Change-Id: Id8c68f857813740d1b22a19cfe4d1a86520310aa Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
* Support Flexbox layout in Qt QuickSanthosh Kumar2025-05-283-0/+135
| | | | | | | | | | | | | | | | The Flexbox component allows the arrangement of the items within the layout in a more flexible way. There is a CSS standard defined for the flexbox layout https://www.w3.org/TR/CSS3-flexbox/. This can be achieved in qt-quick using the yoga library (https://github.com/facebook/yoga.git). [ChangeLog][Third-Party Code] Added MIT LICENSE from the third-party Facebook yoga source (https://github.com/facebook/yoga/blob/main/LICENSE) to enable its usage in Qt QuickLayouts. Task-number: QTBUG-133633 Change-Id: I2187dba031cb4842baef1c5a84c7132eb8c63137 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
* Doc: Remove irrelevant images from Qt QML docsSafiyyah Moosa2025-05-261-1/+0
| | | | | | | | | | | | | Currently there are two images that serve no purpose in the docs, as they do not provide any useful information. This patch removes the following images: - qml-i18n-example.png - extending-qml-advanced-word-cloud.png Fixes: QTBUG-137124 Change-Id: I224fc18eca8a59373fa1b48973816ad826a94625 Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io>
* EventCalendar example: reference the listview explicitly in the delegateVolker Hilsheimer2025-05-241-1/+2
| | | | | | | | | | The example generates warnings on stderr when shutting down, presumably because (some) delegate items no longer have a parent. Instead of referencing parent, give the ListView an ID and reference it explicitly. Pick-to: 6.9 6.8 Change-Id: If968e9f95e31226e9c3fb2f63eb92cff5afd3cba Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* EventCalendar example: balance begin/endResetModel callsVolker Hilsheimer2025-05-241-3/+3
| | | | | | | | | | | The repopulate() implementation has an early return. Use a scope guard to make sure that we always balance being and end calls. Pick-to: 6.9 6.8 Fixes: QTBUG-136947 Change-Id: I8d817ad7bdcae8645afe15479a510c6fd070c88b Reviewed-by: Dilek Akcay <dilek.akcay@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Doc: Fix Linking issuesTopi Reinio2025-05-201-8/+7
| | | | | | | | | | | | | | | | - Fix linking to `QtQuickView` Android class - Fix incorrect link target to section - Fix \sa link to QLocale::createSeparatedList() - Remove link to undocumented header `qqmlregistration.h` - Replace link to non-existent QML type HeaderViewDelegate with actual type name(s). - Fix links to (Horizontal|Vertical)HeaderView::delegate property, as the property is documented in the base type. - Remove \sa links to private member QSGTextNode::doAddTextDocument() Pick-to: 6.9 Change-Id: I3bab7155f8d73af6d51f8cfe890ece6d31671f1d Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
* Android: Fix linter problems in QtQ4A examplesOlli Vuolteenaho2025-05-195-5/+5
| | | | | | | | | | | | | | | | | | | | | | In 6.9.1 the Q4A compile SDK version was bumped to 35, which includes a new edge-to-edge feature. For now this was disabled until we can add official support for the feature. When building the QtQ4A examples from the command line a linter is run as part of the build process and this raises a complaint about the disabling of the edge-to-edge feature, as that is not supported until API level 35 and the minSDKLevel is still 28. This should be safe to be ignored which we can do by setting the linter-specific "tools:targetApi" attribute to the element. Amends 3d3f2dcb5ad3a0d57ae39383a9998196948c3d08. Task-number: QTBUG-134880 Fixes: QTBUG-136933 Pick-to: 6.9 6.9.1 6.8 Change-Id: Ie86fdc429ffb9f89ebe23999967a329cd630f194 Reviewed-by: Petri Virkkunen <petri.virkkunen@qt.io>
* Introduce threadedsonglist exampleOtto Ryynänen2025-05-0247-1/+1193
| | | | | | | | | | | A new example showcasing use of a worker thread for fetching data to a custom model based on QAbstractListModel. The pattern is a topic in Qt World Summit 2025. Fixes: QTBUG-135351 Pick-to: 6.9 Change-Id: If1fe04740206fa5bfbe1eea269e2bde1e217eaf9 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* TextEditor example: allow setting multiple font attributesShawn Rutledge2025-04-291-4/+4
| | | | | | | | | | | | | | | | | | | | When a user activates the boldAction for example, the code was replacing QTextCharFormat's font with a default-constructed font that has the bold attribute set, which meant that it could not be bold, italic, underlined struck out, and with a custom size and color at the same time. On the other hand, when we do it the current way: textArea.cursorSelection.font.bold = checked we call QQuickTextSelection::font(), QFont::setBold(), and then QQuickTextSelection::setFont(). (QFont is a QML value type, so it's the only way.) Perhaps at some point, something was going wrong with that, but it seems to work now. Amends 045f9ce192d841f3cc36d514b5f238b46488b41e Fixes: QTBUG-136250 Pick-to: 6.8 6.9 Change-Id: I268e5814e7aa52aeb5aaec2d1a8fbfbc0d670236 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
* Remove menu shortcut from Controls gallery exampleShawn Rutledge2025-04-291-5/+0
| | | | | | | | | | | | Text editing controls TextField and TextEdit provide their own context menus since 3b598b6f7509f57e198e7de1f04e4333555e7227. We don't want a global menu key shortcut to preempt those. Task-number: QTBUG-136253 Pick-to: 6.9 Change-Id: I7d0ec3754e24154b203c8ccd95801542a185a1c4 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* TextEditor example: Add font and color dialog actions to Format menuShawn Rutledge2025-04-281-0/+6
| | | | | | | Task-number: QTBUG-136251 Pick-to: 6.8 6.9 Change-Id: I64d7a406d4acff5395cfc18c201888c17a44e10f Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
* Improve QML in Controls TextEditor exampleShawn Rutledge2025-04-281-11/+2
| | | | | | | Pick-to: 6.8 6.9 Task-number: QTBUG-119988 Change-Id: Iffc7df85f25024301efef591eb3fbfb1cfbe2f17 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
* Android: QtQuick for Android: Fix example scaling featuresKonsta Alajärvi2025-04-1416-160/+218
| | | | | | | | | | | | | | | | | | | | -set button and other text sizes back -add thumb and track back to switch -Change main relative layout gravity from center_vertical to center_horizontal to make the topMargin take effect -add previous topMargins back -remove layout_margins dimension as there were already dimensions for all the places it was used in -change naming of some dimensions -remove unused dimensions -Adjust text sizes in qtquickview_kotlin and java, they were little too small on high dpi devices -Adjust text sizes, margins and other dimensions in Main and Second.qml files Fixes: QTBUG-134405 Pick-to: 6.9 Change-Id: I35bc7892abe2435bd63b40bca9a21061ae9f0fa8 Reviewed-by: Petri Virkkunen <petri.virkkunen@qt.io>
* Port away from QPairZhao Yuhang2025-04-122-2/+2
| | | | | | | | QPair is just an alias of std::pair anyway. Task-number: QTBUG-115841 Change-Id: I26fc90adcc775aac9955ad57304af914dc4ed48f Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Docs: Add code location instructions for Qt Quick for Android examplesNicholas Bennett2025-04-113-0/+6
| | | | | | | | | | Implemented a qdocinc similar to the other one used in general Qt examples. Fixes: QTBUG-135200 Pick-to: 6.8 6.9 Change-Id: I050da4162eea21cdbae00806b40525fc8e566a0c Reviewed-by: Petri Virkkunen <petri.virkkunen@qt.io>