aboutsummaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* QQStyleKitControl: add support for Instance VariationsRichard Moe Gustavsen3 days2-7/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch will add support for Instance Variations. Instance Variations allows you to define one or more style variations in a StyleKit style that can be activated from the application using an attached 'StyleKitControl.variations' object. Instance Variations will affects all descendant StyleKitReaders of the item that contains the attached object. For example, if you set "StyleKitControl.variations: ['mini']" on a GroupBox, all controls inside that GroupBox will be affected with the variation named "mini" in the style (if any). Inside a variation, you specify which controls should receive alternative styling when the variation is applied. Any properties defined in a Variation override those set in the Style or Theme. In order to support Instance Variations, this patch will also refactor how we implement Type Variations, which are variations that applies to _all_ controls of a specific type, rather than to individual instances. Change-Id: I6486979281997e69b65da0ed4866b264c91c592f Reviewed-by: Doris Verria <doris.verria@qt.io>
* Android: Bump Gradle and APG versions in QtQ4A examplesOlli Vuolteenaho3 days8-8/+8
| | | | | | | | | This will match them with Q4A. Task-number: QTBUG-138877 Pick-to: 6.10 Change-Id: Ia5cb1954b361f7f0abb788c326045f71da202607 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* Examples: add new example: StyleKitExampleRichard Moe Gustavsen4 days12-0/+2443
| | | | | | | | | | This patch will add a new example to Controls that demonstrates the new StyleKit API that has recently been added to Qt.labs. It contains a few styles that the user can choose between, where each style has a different level of complexity. Change-Id: Ie193105c05759eee2b4f4deb9d1932448d7e36c5 Reviewed-by: Doris Verria <doris.verria@qt.io>
* Doc: Add alternate text for Qt Quick and Qt Quick Controls imagesJerome Pasion5 days12-21/+55
| | | | | | | | | | Alternate text (alt text) improves the documentation experience for screen readers and for other accessibility tools. Pick-to: 6.9 6.10 Task-number: QTBUG-135120 Change-Id: I975c3de11f893882fb9a27218079f244bd38a622 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Remove qml-i18n example in qtdeclarative repoAlexandru Croitor2025-10-3115-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 6.10 Task-number: QTBUG-141465 Change-Id: Id88603a3753f53dfac9f350e981073effda15eb1 Reviewed-by: Masoud Jami <masoud.jami@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.10 6.9 6.8 Change-Id: Ib61ca9beac1bafb4e4e5f8fcc6475093b313768e Reviewed-by: Jerome Pasion <jerome.pasion@qt.io>
* 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.10 6.8 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Don't use JS placeholders inside qsTr() callsJan Arve Sæther2025-10-272-2/+2
| | | | | | | | Using JS placeholders inside qsTr() is a bad practice, and makes translations impossible Change-Id: I08dffd1a718a7112a8e426a013419578ec2f16f0 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* RectangularShadow: Add support for individual corner radiusKaj Grönholm2025-10-2311-69/+240
| | | | | | | | | | | | Add API for specifying individual corner radius values similar to Quick Rectangle. Try to keep the overhead minimum when not used, by storing data in lazily allocated extra and using separate shader. Use the API in the neumorphicpanel example. Task-number: QTBUG-141110 Change-Id: I90e558526dff01c88fb2d163a33704b8f73aa1fc Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* 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.10 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>
* Adapt to reuse version 6Lucie Gérard2025-10-201-0/+8
| | | | | | | Task-number: QTBUG-140916 Pick-to: 6.8 6.10 Change-Id: I7c3e50c277f28a9af9347fcf61e205187334be2f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* 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.10 6.8 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* 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. Pick-to: 6.10 Task-number: QTBUG-138022 Change-Id: I31da83ce5978dc1cab63cfe39d53f2d2c72088a9 Reviewed-by: Rami Potinkara <rami.potinkara@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Account for safe margins in scenegraph vulkan exampleAssam Boudjelthia2025-09-301-1/+5
| | | | | | | Fixes: QTBUG-140544 Pick-to: 6.10 6.10.0 Change-Id: I951d3bae73157ccf2cfcf549b506a44651719243 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
* CMake: Guard examples that use Svg in a qt build without SvgAlexandru Croitor2025-09-162-5/+11
| | | | | | | | | | | | | | | | | | Otherwise one gets errors like the following in standalone examples build: CMake Error at tools/svgtoqml/Qt6SvgToQmlMacros.cmake:65 (add_custom_command): Error evaluating generator expression: $ No target "Qt6::svgtoqml" Because the examples now use the new qt_target_qml_from_svg() function, which will try to reference a non-existent svgtoqml tool target. Change-Id: I16b10c4fa31bd73d0d95bbad371cde54f17c236a Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@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.10 6.9 Change-Id: I319b6c7665a4c4cadd7d1e711d8527f79ca35261 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* 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 6.10 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* 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 6.10.0 6.9 6.8 Change-Id: I61a64c8637c222290e4c630d75d579f6bb23886c Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
* Doc: Add some notes about PathText usage in Quick ShapesEirik Aavitsland2025-09-051-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. Pick-to: 6.10 Change-Id: I8c4c7d319c96d2514c3b11f27a7e85b7c408a79d Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* Build flexboxlayout example when building examplesJan Arve Sæther2025-09-053-0/+17
| | | | | | | | | Disable for INTEGRITY AND VXWORKS as it is currently not supported for these two targets Pick-to: 6.10 Change-Id: I7eb21d5c348f7e29c2c99cede30a8e627036b220 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
* 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. Pick-to: 6.10 Change-Id: I68a6570dbc6c30e63b9d5b8b8079c9a58ab4e728 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* 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 Pick-to: 6.10 Change-Id: I9d59bc1b5b63a3d6a8230cdd83b99efd886744d5 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* Use new qt_target_qml_from_svg() function for examplesEskil Abrahamsen Blomfeldt2025-08-2124-2381/+104
| | | | | | | | | | | | | | | | This updates weatherforecast and vectorimage examples to use the automatic svgtoqml build steps instead of manual conversion. Removes .pro file for weatherforecast. This is a new example after the move to CMake and it should have never had a .pro file to begin with. We aren't going to implement the svgtoqml build step with qmake, so we can't keep this working. Task-number: QTBUG-128915 Change-Id: I2e2506316d4fc8fb35c227309f50e0c92f2a0e38 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* Rename flexboxlayout example directory in consistent with othersSanthosh Kumar2025-08-153-0/+0
| | | | | | Pick-to: 6.10 Change-Id: Ie189960af25a33f0dee54fbd49213f9d5eab5891 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* 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 Pick-to: 6.10 Change-Id: Ieb1ab02e19bc929f103443f0845a8980daceb245 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
* Update svgtoqml generated examplesEskil Abrahamsen Blomfeldt2025-08-1212-14/+378
| | | | | | | | | | The svgtoqml tool has been updated, so we need to update its generated files as well. Pick-to: 6.10 Change-Id: Ie58653c35e99e0c1119a9bf64d803371d31261e5 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io> Reviewed-by: Hatem ElKharashy <hatem.elkharashy@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.10 6.9 6.8 Task-number: QTBUG-135407 Change-Id: I25bf69139de13a70e3682865dd779e0a5ab05e28 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* filesystemexplorer: Provide proper metadata for macOSKai Köhne2025-08-013-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 Pick-to: 6.10 Change-Id: If73fd741e330b66ae5367a61c65ccc65653cdab6 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* sg: Fix culling in layersLaszlo Agocs2025-07-221-4/+7
| | | | | | | Pick-to: 6.10 6.9 6.8 Fixes: QTBUG-136611 Change-Id: If2a0a0365ca24360d850ffce98c0bec4a3961976 Reviewed-by: Jonas Karlsson <jonas.karlsson@qt.io>
* Move SPDX header comment back to the top of the fileFabian Kosmale2025-07-211-1/+1
| | | | | | | | | Amends 728028280a6ed10191a14918b3b87acf8e2bd4d5 Pick-to: 6.10 Change-Id: Id65cca4a2189e798ae99c6997bdcbb0a6df2f786 Reviewed-by: MohammadHossein Qanbari <mohammad.qanbari@qt.io> Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
* spreadsheets example: Configure qmllintFabian Kosmale2025-07-181-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. Pick-to: 6.10 Change-Id: Ib179364ac5bda033ad6a2c3d87bc3738a98d1489 Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
* spreadsheets example: Fix warnings (and code)Fabian Kosmale2025-07-186-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 Pick-to: 6.10 Change-Id: Ia4ff94aa8f66754d0a374ade7ff6c8cad4329530 Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
* FileSystemExplorer: Add missing importFabian Kosmale2025-07-171-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). Pick-to: 6.10 Fixes: QTBUG-138171 Change-Id: I28004e1d36ae6d07a1a01a72ecf716b17ca5b9ec Reviewed-by: Dennis Oberst <dennis.oberst@qt.io> Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
* QtQ4A: Update Gradle and Kotlin plugin versions in examplesOlli Vuolteenaho2025-07-156-6/+6
| | | | | | | | | | | Gradle 8.10 -> 8.14.2 Kotlin Android Gradle plugin 2.1.0 -> 2.2.0 Pick-to: 6.10 Task-number: QTBUG-137782 Change-Id: I62b54d2730b1fc48139057d1a4ef0ce4061aaeb0 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Rami Potinkara <rami.potinkara@qt.io>
* Gallery example: Add missing controlsMohammadHossein Qanbari2025-06-2410-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. Pick-to: 6.10 Change-Id: I79115bfffd581ca20af1c2a206a145c5362311bb Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Gallery example: Add disable optionMohammadHossein Qanbari2025-06-2025-20/+56
| | | | | | | | | A "disable" option has been introduced. This allows users to view the disabled state of all controls. Pick-to: 6.10 Change-Id: If2fa5b673ac9db7acf805203046d111dda13f435 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* 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. Pick-to: 6.10 Change-Id: I9e48b96810f6f2d6f0f1557f7003b7fb274d39ca Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io> Reviewed-by: Pierre-Yves Siret <gr3cko@gmail.com>
* Bump version to 6.11.0Jani Heikkinen2025-06-144-4/+4
| | | | | Change-Id: If24576debc2246a2a8c244a56c4a69e9a2f6b2e6 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_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>