aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols
Commit message (Collapse)AuthorAgeFilesLines
* StyleKit: Add style and theme fontsHEADdevDoris Verria10 hours1-0/+10
| | | | | | | | | | | | | | | | | Add a fonts property to the style that allows you to set fonts per control, similarily to what we do in QQuickTheme. The fonts are propagated from the style to the theme, and from the fallback style to the style. That means that if a font is not set for a theme or style, it will be resolved against its fallback font. Since both the QQStyleKitTheme and QQStyleKitStyle should have a fonts property, introduce a common base class: QQStyleKitThemeProperties that contains the fonts property. Later, the palettes can be moved there as well. Also add a font property to the QQStyleKitReader that is suposed to return the font for the current control being read. Change-Id: I116c1ab9bc426570756476ee409513587c475a0d Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* 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>
* 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>
* 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-283-3/+0
| | | | | | | | | | | | | | | | | | | | | 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* TextEditor example: add actions to built-in context menu, remove custom menuShawn Rutledge2025-04-082-55/+35
| | | | | | | | | | | Since 3b598b6f7509f57e198e7de1f04e4333555e7227 TextArea comes with a built-in context menu. Here we demonstrate how to add extra menu items to the end. Pick-to: 6.9 Task-number: QTBUG-35598 Task-number: QTBUG-134903 Change-Id: I1e3d8c044939521aaa076486630e3b879130dfd1 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Basic Style: Add support for dark mode color schemeMohammadHossein Qanbari2025-04-051-1/+1
| | | | | | | | | | | | | | | | | | | Previously, the basic style did not respect the system's dark mode settings because the palette initialized by QQuickBasicTheme lacked definitions for dark mode colors. This commit updates the palette initialization to dynamically set colors based on the current system color scheme. Additionally, the palette is reinitialized whenever the system color scheme changes. The controls gallery example has been updated to demonstrate the new functionality. [ChangeLog][Controls][Basic] Basic style supports dark mode now. Fixes: QTBUG-135207 Change-Id: I2d6a74b407a7981905a9b86e97004cf0609a4bf0 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Gallery Example: Fix Shortcut.sequence warningMohammadHossein Qanbari2025-04-031-1/+1
| | | | | | | | Since StandardKey.HelpContents has two key bindings (at least on ubuntu) then setting `sequences` removes the warning. Change-Id: If4fb733fe562f1fc56af0d53ae029fa3bd32c0e0 Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
* QuickControls: Add vertical and horizontal header view delegatesMohammadHossein Qanbari2025-03-062-62/+49
| | | | | | | | | | | | | | | | | | | | | | Implement QQuickHeaderViewDelegate as the base class for header view delegates, introducing 'headerView' and 'orientation' properties. Separate previous delegate settings into HorizontalHeaderViewDelegate and VerticalHeaderViewDelegate components for Basic, Fusion, and Imagine styles. This change improves the modularity and reusability of header view delegates across different styles. It also allows for more consistent behavior and easier customization of header views. A test suite has been added to verify default property settings and ensure the new components work without warnings. [ChangeLog][QtQuickControls][HeaderView] Add dedicated delegate components for vertical and horizontal header views. Task-number: QTBUG-70326 Change-Id: I8831e77f6909bdae13c3a7262145ab156f63a59a Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Limit page stacking to only one pageMorteza Jamshidi2025-02-031-0/+3
| | | | | | | | | By limiting the page stacking there is no need for handling multi-page navigation. Fixes: QTBUG-132715 Change-Id: Ibbd99834d2740653340fd785f94c19215eab2e7d Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Spreadsheets: Fix drag and drop issue after scrolling in table viewMohammadHossein Qanbari2025-01-281-94/+102
| | | | | | | | | | | | | | | | | | This patch fixes an issue with drag and drop functionality in the example, particularly after long scrolling. The problem stemmed from two main factors: - The table view was stealing DropArea events when interactive. - The drop area was positioned behind the table view's contentItem, preventing it from receiving the events. The drop area is now positioned above the table view, ensuring it can receive events during dragging operations. The table view's interactive mode is temporarily disabled when dragging begins and restored to its previous state when dragging ends. Task-number: QTBUG-125767 Change-Id: I8920284f4652464bccd92109a2a9685228e11783 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Spreadsheets: Prevent data loss when dropping cells in invalid locationsMohammadHossein Qanbari2025-01-241-0/+23
| | | | | | | | | | | | | | | | | Before this patch, dropping selected cells into an invalid place in the TableView could result in partial data loss. This occurred because some of the selected data couldn't be set to the new cells, and the data was copied at the start of the drag operation. This patch improves the drag-and-drop functionality by: - Checking the possibility of copying selected data to target cells before the drop occurs (and during dragging). - Avoiding highlighting of invalid target cells during the drag operation. Task-number: QTBUG-125767 Change-Id: Iff1058c2239f4bad3430f4f01ccea619f1ac8773 Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
* Compute implicitSize based on implicitContentSize in Popup and subclassesTor Arne Vestbø2024-12-191-2/+2
| | | | | | | | | | | | Popup uses a Pane as its popup item, so now that Pane reflects its explicitly set contentWidth/Height through implicitContentWidth/Height we can use the same expression for implicit width/height as regular controls, which hooks us into the safe area binding loop detection as well. Pick-to: 6.9 Change-Id: I3709978dae0271d7daf44fc6988f09f03df15b1f Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Compute implicitSize based on implicitContentSize in Pane and subclassesTor Arne Vestbø2024-12-181-2/+2
| | | | | | | | | | | Now that Pane reflects its explicitly set contentWidth/Height through implicitContentWidth/Height we can use the same expression for implicit width/height as regular controls, which hooks us into the safe area binding loop detection as well. Pick-to: 6.9 Change-Id: Ie31b740a1e405341fc5f0ed9673b213292e4afd9 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
* Spreadsheets Example: Use TableViewDelegateMohammadHossein Qanbari2024-11-303-55/+15
| | | | | | | | | This update removes the custom table cell and uses the TableViewDelegate type as the main TableView's delegate. Task-number: QTBUG-114636 Change-Id: Icc2fd121d66f2bd1a6102e8575b75abd46940b96 Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
* SpreadSheet: Use SpreadModel to invoke the required mapping functionsSanthosh Kumar2024-11-112-2/+2
| | | | | | | | | | | | The 'model' used when invoking mapColumn/mapRow during section reordering seems incorrect as the model here has been referred to as QHeaderProxyModel and not the SpreadModel. Updated the corresponding qml to refer to the correct model. Pick-to: 6.8 Change-Id: Ia8fe900eb0574319fd4c967b6f85cf8dd11bddd8 Reviewed-by: MohammadHossein Qanbari <mohammad.qanbari@qt.io> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Spreadsheets Example: Fix hang on dragging header through selected cellsMohammadHossein Qanbari2024-11-071-0/+1
| | | | | | | | | | | | | | | The bug occurred when dragging a column over a selected column cells. The DropArea in TableView attempted to process inconsistent drag data for all the selected cells (up to 1000), causing the application to hang. Fix: Enable DropArea only for dragging TableView cells; disable for other cases. Fixes: QTBUG-130928 Pick-to: 6.8 Change-Id: I162a57638d89b97f3f1ef553850e3be3be389f1d Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
* Gallery example: add colorScheme selectionVolker Hilsheimer2024-10-241-0/+39
| | | | | | | | | | | | | | | | Works with Fusion, iOS, and FluentWin3 styles. Should also work with macOS and ideally Basic, but those styles do not respect the global palette yet. So disable the row with the color scheme selection check boxes unless we know it works. The color scheme setting is not stored across sessions, and is instead applied "live". Task-number: QTBUG-124490 Change-Id: If6bec56884e6dc9093d541fc87800596aa1b9ca3 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Clean up CMake output from wearable example when building qtdeclarativeEd Cooke2024-10-101-4/+5
| | | | | | | | | | Remove the two CMake warnings from the CMake output when building QtDeclarative. The warnings come from a missing optional dependency for the wearable example. Pick-to: 6.7 6.8 Change-Id: Id9bf2ccc4d6db2ea44618b2119c69c89e271a870 Reviewed-by: Matthias Rauter <matthias.rauter@qt.io>
* Spreadsheets Example: Remove circular dependencyMohammadHossein Qanbari2024-09-103-1/+3
| | | | | | | | | | | | The example fails to compile on some platforms due to an existing circular dependency. To fix this issue, the inclusion of `spreadformula.h` has been moved to the related .cpp files, and a forward declaration is used in the `spreadmodel.h` file instead. Fixes: QTBUG-128272 Pick-to: 6.8 Change-Id: Ic2c589f9126e0ba0eed6ffe5150bacd4afa6d239 Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
* Doc: Fix links to Qt Creator documentationLeena Miettinen2024-08-301-3/+3
| | | | | | | | | | - Update the link targets to 14.0 level - Use the \QC and \QDS macros - Remove \externalpage entries from the repository to use \qtbase\doc\global\externalsites\qtcreator.qdoc Change-Id: I5b63b4f5fab2e4e6aceec385b3ce5516b803c682 Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io>
* Spreadsheets Example: Add DocumentationMohammadHossein Qanbari2024-08-302-0/+77
| | | | | | | | | | | The documentation was missing for the example. This patch provides a screenshot image of the application and a documentation file. Fixes: QTBUG-128224 Task-number: QTBUG-125767 Pick-to: 6.8 Change-Id: I2aa73ea7e82eb019db84a7ce685837b89e62f300 Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
* Gallery example: add FluentWinUI3 to the list of stylesVolker Hilsheimer2024-08-291-1/+2
| | | | | | | Pick-to: 6.8 Task-number: QTBUG-124490 Change-Id: I88609e870c4db7ba989d4fc60ecb8445745f34ce Reviewed-by: Doris Verria <doris.verria@qt.io>
* Gallery example: don't hardcode the width of the settings dialogVolker Hilsheimer2024-08-291-1/+0
| | | | | | | | | | | The combobox exceeds the width of the dialog. Let the layout determine the dialog's width. Pick-to: 6.8 Task-number: QTBUG-124490 Change-Id: I9d91941713dd1e5b7c5e7e099c04b2ffbe4d371f Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io> Reviewed-by: Doris Verria <doris.verria@qt.io>
* Spreadsheets Example: Fix Installation and DeploymentMohammadHossein Qanbari2024-08-222-4/+6
| | | | | | | | | | | | | | | After installing the example outside the build directory using `cmake --install --prefix`, the installed application could not run because the Spreadsheet subproject library was not found at runtime. To fix this issue, the Spreadsheets subproject has been added as a static library to the project. Now, it can be found in the installed directory. Fixes: QTBUG-127846 Pick-to: 6.8 Change-Id: I30968afa958ec6bda6017969de157e27550a7616 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Spreadsheets Example: Some improvementsMohammadHossein Qanbari2024-08-175-341/+314
| | | | | | | | | | | | The following changes are applied: - Using ScrollView - Cut action removes the data from the model - Selection handle: smaller size, lighter color and border is used Pick-to: 6.8 Change-Id: Id09c12db5f5c38c2254e1bf81970616e7e84f38d Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Doc: Fix qdoc link warnings to Qt Creator docsAndreas Eliasson2024-08-081-2/+2
| | | | | | | Also, use the macro, \QC. Change-Id: I0c0fddf4c70bbe420a27d54c2ad8ee01487dff81 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>