summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization
Commit message (Collapse)AuthorAgeFilesLines
* Correct license for snippets and examples filesLucie Gérard2024-03-157-7/+7
| | | | | | | | | | | | According to QUIP-18 [1], all examples and snippets file should be LicenseRef-Qt-Commercial OR BSD-3-Clause [1]: https://contribute.qt-project.org/quips/18 Pick-to: 6.7 Task-number: QTBUG-121787 Change-Id: Iad147b8191e42a18137378f315bd18182784acaa Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Revert "Add \examplecategory to Qt DataVis examples"Kai Köhne2023-08-286-6/+0
| | | | | | | | | | This reverts commit cbc46f80976324101dc920de62e3c720feb2a597. Reason for revert: It was decided to _not_ classify Qt DataVis examples in a previous patch (commit 98dfdc8351b75). Therefore revert this patch, and leave the Qt Data Visualization examples in the implicit 'Other' category. Change-Id: Ib1c52832e301f3e21bd0af1a8c49c5fe30a1efca Pick-to: 6.5 6.6 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
* Add \examplecategory to Qt DataVis examplesVenugopal Shivashankar2023-08-076-0/+6
| | | | | | | | Task-number: QTBUG-115245 Pick-to: 6.5 6.6 Change-Id: I7ce4ad8630960430cf656d991f72230d6316fe82 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Pass QDate by value, not by referenceEdward Welbourne2023-07-312-3/+3
| | | | | | | | It's a trivially-copyable value type, just packing a qint64. Change-Id: I2a452d74a5d18570b0c0433b371f5482673e6bf5 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Use auto in graphgallery exampleFriedemann Kleint2023-06-1210-110/+107
| | | | | | | | | Fixing clazy warnings about not repeating type names. Pick-to: 6.6 6.5 Task-number: QTBUG-110698 Change-Id: I574c79bc27ba93e2e84aa454281c8648cd5ddc47 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Doc: Remove 'Graphics' category from examplesTopi Reinio2023-05-096-6/+0
| | | | | | | | | | In Qt 6.6, the Qt Graphs module will replace Qt Data Visualization. Stop promoting examples from this module, as Qt Graphs provides a similar set. Change-Id: If0d50df6bb0cd1046a3c877815639902edd1ba8b Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Doc: Use the \examplecategory macro to tag examplesTopi Reinio2023-04-116-6/+6
| | | | | | | | | | | | | | | | The '\meta category' command was used for tagging examples with a specific category, used in Qt Creators Welcome mode. As we want to also generate lists of examples belonging to a category elsewhere in the documentation, replace the command with a macro that expands to the original \meta command and also adds the example to a group using the \ingroup command. This way, the category names can be used as arguments to the \generatelist or \annotatedlist commands. Pick-to: 6.5 Task-number: QTBUG-112731 Change-Id: Ibfd1179923b898259a5c96417aba8f7711e9c5ee Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Brush up the qmlsurfacegallery exampleFriedemann Kleint2023-03-163-30/+28
| | | | | | | | | | | - Use modern string literals - Use member initialization - Streamline the code a bit with algorithms Pick-to: 6.5 Task-number: QTBUG-110700 Change-Id: Iad834c22f4dc14858b0f5da4fc2a550de9906072 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix the example licensesFriedemann Kleint2023-03-1654-54/+54
| | | | | | | | Examples are BSD licensed Pick-to: 6.5 Change-Id: Ib2136fd1e09c0cb366b224558b36ab6808cf7b8e Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* graphgallery example: Factor out pixmap drawing functions from ↵Friedemann Kleint2023-03-031-48/+66
| | | | | | | | | | | SurfaceGraph::initialize() The function is already quite big. Pick-to: 6.5 Task-number: QTBUG-110698 Change-Id: I7e31b64064595a700365d3b1654705924a36052e Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* graphgallery example: Streamline the code a bitFriedemann Kleint2023-03-036-47/+44
| | | | | | | | | | | | - Populate the data rows using reserve()/append() instead of resize() / assign. - Use prefix increment - Use QStringView when splitting the data file lines Pick-to: 6.5 Task-number: QTBUG-110698 Change-Id: I70fed07a9850e2636e6085b9a9190f1e5a062a67 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* graphgallery example: Rearrange initializationFriedemann Kleint2023-03-037-46/+33
| | | | | | | | | | Calculate the sizes in main and pass them to the graph initialization functions. Also display the message box for GL errors in main. Pick-to: 6.5 Task-number: QTBUG-110698 Change-Id: I622311220e6ff63980b59778bfe9bb56922e6149 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* graphgallery example: Fix leaking modifier classesFriedemann Kleint2023-03-029-24/+14
| | | | | | | | | | | The modifier classes were leaking. Pass a parent to ensure their destruction. Remove the deletion of the graphs from their destructors since they are QWindows, which are deleted by QtGui. Pick-to: 6.5 Task-number: QTBUG-110698 Change-Id: Ied32dad62c93b730f63fa95994c4fc281254c800 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* graphgallery example: Remove unused methods of the bar data classesFriedemann Kleint2023-03-024-41/+4
| | | | | | | | Pick-to: 6.5 Task-number: QTBUG-110698 Change-Id: If591959267680d5599be5d53793ad4ce6c38b632 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Fix bugs introduced by string literal fixTomi Korpipaa2023-03-011-5/+5
| | | | | | | | | Some text bugs were introduced in SHA 9c7c6e657ab848f5c252aa780a18e58ead3ee2f8 Pick-to: 6.5 Change-Id: If95f312fa5fb026270ac4aa637561acec2958b00 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* graphgallery example: Do not cast enum values to int in combo item dataFriedemann Kleint2023-03-014-12/+12
| | | | | | | | | | Enumerations are now known to the meta type system, no casts are required. Pick-to: 6.5 Task-number: QTBUG-110698 Change-Id: I02398a5318547b798f9c95f8ed834443b46a58c5 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* graphgallery example: Create the window containers with a parentFriedemann Kleint2023-02-284-30/+24
| | | | | | | | | | This avoids the QWindow being created as a top level window with a frame. Pick-to: 6.5 Task-number: QTBUG-110698 Change-Id: I0a1116f833dd61c43a113c0e7a74a5181c1ee9b9 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Use new string literals in graphgallery exampleFriedemann Kleint2023-02-289-151/+169
| | | | | | | | Pick-to: 6.5 Task-number: QTBUG-110698 Change-Id: I110c297d08f6a24e402e514f36688b5bf4896c59 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Brush up the graphgallery exampleFriedemann Kleint2023-02-2815-67/+57
| | | | | | | | | | | | | | | | | | | | - Basic C++ polishing: - Use nullptr - Use initializer lists - Replace typedef by using - Port to qsizetype - Default functions - Fix up copy constructor and assignent - Instantiate the main widget, BarGraph and ScatterGraph on the stack for proper clean up Amends 00272ac80843d94217e4f1ea36392e22919afa22. Pick-to: 6.5 Task-number: QTBUG-110698 Change-Id: Ibb9e3ecf5e20ebaaeac2483c768d7b5eb00c0558 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Combine 3 more widget examples into graph galleryTomi Korpipaa2023-02-2752-1841/+1501
| | | | | | | | | | Combine the remaining 3 surface graph examples into graph gallery example. Pick-to: 6.5 Task-number: QTBUG-110698 Change-Id: Ia324189e10f781f9822db220def72b7b15d37a49 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Combine 2 more widget examples into graph galleryTomi Korpipaa2023-02-2725-783/+342
| | | | | | | | | | | Combine the 2 scatter graph examples into graph gallery example. Note: surface examples will be combined into graph gallery in other commits, to avoid making one gigantic commit. Pick-to: 6.5 Task-number: QTBUG-110698 Change-Id: I8c50d07a31a8b1ee84596f4e216e629d88c7846a Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Combine 2 widget examples into graph galleryTomi Korpipaa2023-02-2329-847/+832
| | | | | | | | | | | Combine the 2 bar graph examples into graph gallery example. Note: surface and scatter examples will be combined into graph gallery in other commits, to avoid making one gigantic commit. Pick-to: 6.5 Task-number: QTBUG-110698 Change-Id: Iadf32e4e4d13c06325c89cf9259393d0b9fbda0e Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Remove QT_DECL_METATYPE from examplesFriedemann Kleint2023-02-131-2/+0
| | | | | | | | | | | | They cause conflicts in CMake Unity (Jumbo) builds and are reportedly unnecessary. See https://lists.qt-project.org/pipermail/development/2022-July/042744.html Task-number: QTBUG-109394 Pick-to: 6.5 Change-Id: Ic031710227dbffe23900fb3ad6d3667aa23fd2fe Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Revamp volumetric example visuals and documentationTomi Korpipaa2023-02-135-173/+143
| | | | | | | | Pick-to: 6.5 Fixes: QTBUG-110907 Change-Id: I16fa89d742ac7a7f26bb040e12c6f1e55a10f293 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Combine 3 examples into one qmlsurfacegalleryTomi Korpipaa2023-02-1036-11234/+1121
| | | | | | | | | | | Combine qmlsurface, qml3doscilloscope, and qmlspectrogram into one surface graph gallery example. Pick-to: 6.5 Fixes: QTBUG-110700 Change-Id: Ic8319884a61a12c5d65c68314c958a86d62a65b1 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix a wrong id usage in qmlaxishandling exampleTomi Korpipaa2023-02-071-1/+1
| | | | | | | Pick-to: 6.5 Change-Id: If37fa9d647277ab71e65b461c367b412ef1a412b Reviewed-by: Dilek Akcay <dilek.akcay@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Update qmlscatter example doc to use imperative moodTomi Korpipaa2023-02-021-38/+38
| | | | | | | Pick-to: 6.5 Change-Id: Icf20a3418154a7d591052f043844ce8c2625fc71 Reviewed-by: Sami Varanka <sami.varanka@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Revamp qmlbars example visuals and documentationTomi Korpipaa2023-02-025-204/+278
| | | | | | | | Pick-to: 6.5 Fixes: QTBUG-110801 Change-Id: I31ee31ab29cb230a7eadd9641bd817249e2e41c7 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Combine 2 examples into oneTomi Korpipaa2023-02-0230-835/+758
| | | | | | | | | | Combine qmlaxisdrag and qmlaxisformatter examples into one Pick-to: 6.5 Fixes: QTBUG-110699 Change-Id: I5043089ad47370165543b7c09409ba08d5f4690d Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Revamp qmlscatter example visuals and documentationTomi Korpipaa2023-01-315-33/+51
| | | | | | | | Pick-to: 6.5 Fixes: QTBUG-110702 Change-Id: I518e986832d68f39eb63154fea7869a0136c10f0 Reviewed-by: Dilek Akcay <dilek.akcay@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix example naming and categoriesTomi Korpipaa2023-01-2744-1410/+82
| | | | | | | | | | Remove 2 more irrelevant examples Pick-to: 6.5 Fixes: QTBUG-110463 Change-Id: I9597f311d36fb79db45f6f64fb97bc5376372980 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Update temperature data in bars exampleTomi Korpipää2023-01-262-27/+26
| | | | | | | | Pick-to: 6.5 Change-Id: I18aec61bb8b83e0fd7e1d22eabb62607c501b9fb Reviewed-by: Dilek Akcay <dilek.akcay@qt.io> Reviewed-by: Sami Varanka <sami.varanka@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix clazy warnings from examplesTomi Korpipaa2023-01-205-14/+18
| | | | | | | | | Pick-to: 6.5 Fixes: QTBUG-110365 Change-Id: I5598b3035d40b375d4913ae14c710d7bb6f52dfb Reviewed-by: Dilek Akcay <dilek.akcay@qt.io> Reviewed-by: Sami Varanka <sami.varanka@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Bundle application resources in QML examplesTomi Korpipaa2023-01-2018-224/+156
| | | | | | | | | Pick-to: 6.5 Task-number: QTBUG-110329 Change-Id: I91dc271398464336e4fda1279554ce899f6319b2 Reviewed-by: Dilek Akcay <dilek.akcay@qt.io> Reviewed-by: Sami Varanka <sami.varanka@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix qmllint warnings in qmlspectrogramTomi Korpipaa2023-01-191-19/+18
| | | | | | | | Pick-to: 6.5 Task-number: QTBUG-110274 Change-Id: If17de6f4d850e5225c2ec71671a0e1c745b9f030 Reviewed-by: Sami Varanka <sami.varanka@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix qmllint warnings in qmlsurfaceTomi Korpipaa2023-01-191-18/+17
| | | | | | | | Pick-to: 6.5 Task-number: QTBUG-110274 Change-Id: I50327348ad6e8e6ab0a58ef0e97eadcf229d5472 Reviewed-by: Sami Varanka <sami.varanka@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix qmllint warnings in qmlscatterTomi Korpipaa2023-01-191-15/+14
| | | | | | | | Pick-to: 6.5 Task-number: QTBUG-110274 Change-Id: If662f79e71b498cfa250a00bdbfa08e764f2b7b0 Reviewed-by: Sami Varanka <sami.varanka@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix qmllint warnings in qmlsurfacelayersTomi Korpipaa2023-01-191-21/+21
| | | | | | | | Pick-to: 6.5 Task-number: QTBUG-110274 Change-Id: Iaff230000dbb7bcf653162a8e33987850666c6ba Reviewed-by: Dilek Akcay <dilek.akcay@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix qmllint warnings in qmlmultigraphTomi Korpipaa2023-01-181-6/+6
| | | | | | | | Pick-to: 6.5 Task-number: QTBUG-110274 Change-Id: Iab3070b95c3fb50a7067220ded43a73c73a33c63 Reviewed-by: Dilek Akcay <dilek.akcay@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix qmllint warnings in qmlbarsTomi Korpipaa2023-01-181-18/+22
| | | | | | | | Pick-to: 6.5 Task-number: QTBUG-110274 Change-Id: I3d429b92777720054f8e3f4691b201d61ea2b780 Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix qmllint warnings in qmlaxisformatterTomi Korpipaa2023-01-185-30/+16
| | | | | | | | | Pick-to: 6.5 Task-number: QTBUG-110274 Change-Id: If85642218c9659dab0e4947bb639aa24193c4330 Reviewed-by: Dilek Akcay <dilek.akcay@qt.io> Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix qmllint warnings in qml3doscilloscopeTomi Korpipaa2023-01-185-49/+73
| | | | | | | | Pick-to: 6.5 Task-number: QTBUG-110274 Change-Id: Iea96521c55007faebc960ffa1d103477062cf7bc Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix qmllint warnings in qmlaxisdragTomi Korpipaa2023-01-181-8/+7
| | | | | | | | Pick-to: 6.5 Task-number: QTBUG-110274 Change-Id: I4f731c3b5c340569459af280fd4ebfd2d7599507 Reviewed-by: Sami Varanka <sami.varanka@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Remove redundant examplesTomi Korpipaa2023-01-1740-6338/+0
| | | | | | | | | Pick-to: 6.5 Fixes: QTBUG-110273 Change-Id: I1e9ad2b07cd566235bdfb99b691d5f87a3d49f33 Reviewed-by: Sami Varanka <sami.varanka@qt.io> Reviewed-by: Dilek Akcay <dilek.akcay@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix qmlsurfacelayers example for portrait modeTomi Korpipaa2023-01-131-142/+152
| | | | | | | | Pick-to: 6.2 6.4 6.5 Fixes: QTBUG-110045 Change-Id: Ifde6e2d2eb3a50585194e91419db493e857cb0ae Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix typo in qmlmultigraph exampleTomi Korpipaa2023-01-131-4/+4
| | | | | | Change-Id: Ic3fb7e95e78f9bad261793c7c4c6443e2edd867d Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix qmlsurface example for portrait modeTomi Korpipaa2023-01-131-39/+58
| | | | | | | | Pick-to: 6.2 6.4 6.5 Fixes: QTBUG-110044 Change-Id: Iaa3d5c8f717a8ddead81a85d29bde03640544d0b Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix qmlbars example for portrait modeTomi Korpipaa2023-01-131-12/+5
| | | | | | | | | Pick-to: 6.2 6.4 6.5 Fixes: QTBUG-110038 Change-Id: I008827e96c7a090568689652a81e32e0bf80f67c Reviewed-by: Amr Elsayed <amr.elsayed@qt.io> Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix qmlaxisdrag example for portrait modeTomi Korpipaa2023-01-131-7/+13
| | | | | | | | | Pick-to: 6.2 6.4 6.5 Fixes: QTBUG-110037 Change-Id: I240a94e73dee2e2ce30f8245798bba7b74a41b37 Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io> Reviewed-by: Amr Elsayed <amr.elsayed@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix qmlspectrogram example for portrait modeTomi Korpipaa2023-01-131-62/+85
| | | | | | | | Pick-to: 6.2 6.4 6.5 Fixes: QTBUG-110043 Change-Id: I8bff73b914b9cd657b2f2ac718120ca2c3a5f3f0 Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>