aboutsummaryrefslogtreecommitdiffstats
path: root/examples/datavisualization
Commit message (Collapse)AuthorAgeFilesLines
* Fix various documentation warningsFriedemann Kleint2022-06-222-2/+2
| | | | | | | | | example_datavisualization__surface_numpy.rst:: WARNING: image file not readable: ../surface/doc/surface_mountain.png examples/example_declarative_referenceexamples_extended.rst:1: WARNING: malformed hyperlink target. Pick-to: 6.3 Change-Id: I6c935a79a27b314d4ade12f1c2983aa49aa65259 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Use SPDX license identifiersLucie Gérard2022-05-278-313/+16
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: I065150015bdb84a3096b5b39c061cf0a20ab637d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* QtDataVisualization: Add an example for using a numpy array directlyFriedemann Kleint2022-05-054-0/+532
| | | | | | Task-number: PYSIDE-1880 Change-Id: I41a72f1ebcfa5f62826bffe6db670695b248bc7a Reviewed-by: Christian Tismer <tismer@stackless.com>
* PySide6: Rename the surface_numpy to surface_model_numpyFriedemann Kleint2022-05-054-0/+0
| | | | | | | Task-number: PYSIDE-1880 Pick-to: 6.3 Change-Id: If7b9946578be4e32fc3b52d360b969e91e642ee3 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Refactor the surface examplesFriedemann Kleint2022-04-294-540/+552
| | | | | | | | | | - Introduce a Window class to unclutter main.py - Port to snake case naming Task-number: PYSIDE-1880 Pick-to: 6.2 6.3 Change-Id: I433c48904ccc9adbafceb6d51c86f551e405a10e Reviewed-by: Christian Tismer <tismer@stackless.com>
* Add a surface example using numpy arraysFriedemann Kleint2022-04-204-0/+568
| | | | | | | | | | Demonstrate how to use numpy arrays in conjunction with a QAbstractTableModel to populate a surface graph. Task-number: PYSIDE-1880 Pick-to: 6.2 6.3 Change-Id: I4eeeea73c1ec1f63278d8d2cd6a740108a644d41 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Surface example: Brush up the codeFriedemann Kleint2022-04-132-5/+8
| | | | | | | Task-number: PYSIDE-1880 Pick-to: 6.2 6.3 Change-Id: I7451a8ffe84e63128daf96adca67add7fcc28862 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Surface example: Fix loading the image from a different pathFriedemann Kleint2022-04-131-1/+3
| | | | | | | | | | Use Pathlib to locate the image file. Task-number: PYSIDE-1880 Pick-to: 6.2 6.3 Change-Id: Idc1c0b6dc3fb1f62edd63e4c6eb61c7d4940387c Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Add a minimal surface exampleFriedemann Kleint2022-04-132-0/+95
| | | | | | | | | | | This is useful for toying with the module. Pick-to: 6.3 6.2 Task-number: PYSIDE-1880 Task-number: PYSIDE-841 Change-Id: I08f6e920e82a58df23f4b214ae6ec074b22b63e0 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com>
* examples: replace http by httpsCristián Maureira-Fredes2022-04-013-3/+3
| | | | | | Pick-to: 6.2 Change-Id: Ib53667e03a2dea2afea73a344d5749d37d59c52b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* examples: Add QtDataVisualization SurfaceCristian Maureira-Fredes2021-09-216-0/+520
| | | | | | Task-number: PYSIDE-841 Change-Id: Ia98aab49cff5fb86078b547a99b33a4a0bf8790e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* examples: add screenshots to more modulesCristian Maureira-Fredes2021-06-122-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | Adding screenshots and small documentation file to the modules - corelib - datavisualization - external - opengl - quick - sql - uitools - webchannel - webenginewidgets - some widgets - xml Renaming the widgets gallery due to name conflict with the quick controls gallery, and fixing two typos from contextinfo.py and hellogl2.py. Task-number: PYSIDE-841 Pick-to: 6.1 Change-Id: I2705e5d605fa738da0dca906cf6acb4b9d5d3dcd Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* examples: use exec() instead of exec_()Cristian Maureira-Fredes2021-05-051-1/+1
| | | | | Change-Id: I07dd4339093be8fcc80e63a2ff0448e998356203 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Examples: Fix some space-related flake warningsFriedemann Kleint2021-04-291-0/+3
| | | | | | Task-number: PYSIDE-1112 Change-Id: Ib8991199e4822673d6a25cba0023dbe3b03f5938 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Examples: Use new form of super()Friedemann Kleint2021-04-281-1/+1
| | | | | | Task-number: PYSIDE-1112 Change-Id: Ifcb4da974bdcad7af536404fffdbffc585d3d167 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Port non-QWidget examples to snake caseFriedemann Kleint2021-03-291-24/+24
| | | | | | Task-number: PYSIDE-1112 Change-Id: I0be4d2124663bbf8973432b066a0a49facab18b3 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* examples: directory structureCristian Maureira-Fredes2021-02-092-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | When generating the gallery automatically, the structure of the examples was not the same for all the modules. This reorganization was made under the following assumption: An example requires: - its own directory, - a '.pyproject' file, - one or more '.py' files, - extra files (likes images, .rc, .ui, etc) Even for cases when subdirectories are made to depict categories, like 'widgets/state-machine/...', one directory is required per example. There should not be '.pyproject' files for categories, except for the general 'examples.pyproject' to open all of them. Task-number: PYSIDE-1490 Pick-to: 6.0 Change-Id: Ie690773c816a248016dbebaad90fbb1d1c2aeea5 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6: Remove namespace from QtDataVisualizationFriedemann Kleint2021-01-281-7/+9
| | | | | | | | | Adapt to qtdatavis3d/587d44e8077196ed4aa3df1484e69adcba2dc268. Task-number: QTBUG-90400 Task-number: PYSIDE-1482 Change-Id: I2a5ad5212cf349805937a32caa90e383c8b533d6 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Rename PySide2 to PySide6Friedemann Kleint2020-11-021-5/+5
| | | | | | | | Adapt CMake files, build scripts, tests and examples. Task-number: PYSIDE-904 Change-Id: I845f7b006e9ad274fed5444ec4c1f9dbe176ff88 Reviewed-by: Christian Tismer <tismer@stackless.com>
* examples: remove unused importsCristián Maureira-Fredes2020-01-061-3/+2
| | | | | Change-Id: I85216bcfc23161b832ecb675ea58f33e67004fe9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Add .pyproject files for each exampleCristián Maureira-Fredes2019-09-271-0/+3
| | | | | Change-Id: I4dec66067aa2b0cc50d1ac3226537e4f09006132 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
* Change example scripts permissions to 644Cristian Maureira-Fredes2018-12-121-1/+0
| | | | | | | | | | | There was a mix of 644 and 755, since we expect the users to execute: python example.py we do not need to have files with 755. Change-Id: Iba9b2f5dbb57fe2a3503d8dfe971a4e92e764022 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Simo Fält <simo.falt@qt.io>
* Remove semicolon from examplesCristian Maureira-Fredes2018-06-181-5/+5
| | | | | | Task-number: PYSIDE-712 Change-Id: Ib91e4fec88bdb7146e54c285c7f4da60deecb6cf Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Change license from all the filesCristian Maureira-Fredes2018-05-031-1/+1
| | | | | | | | | | | | | | | | | Removing the word 'project' from all the headers, and changing the PySide reference from the examples to Qt for Python: The following line was used inside the source/ and build_scripts/ directory: for i in $(grep -r "the Qt for Python project" * |grep -v "pyside2-tools" | awk '{print $1}' | sed 's/:.*//g');do sed -i 's/the\ Qt\ for\ Python\ project/Qt\ for\ Python/g' $i;done and the following line was used inside the examples/ directory: for i in $(grep -r "of the PySide" * |grep -v "pyside2-tools" | awk '{print $1}' | sed 's/:.*//g');do sed -i 's/of\ the\ PySide/of\ the\ Qt\ for\ Python/g' $i;done Change-Id: Ic480714686ad62ac4d81c670f87f1c2033d4ffa1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Move examples from submodule to pyside-setupFriedemann Kleint2018-01-121-0/+115
Move PySide2 examples that are owned by the Qt Company to a new examples directory. Done-with: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> Task-number: PYSIDE-363 Change-Id: I14099764d9eef2bc35e067086121427955862e3a Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>