aboutsummaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Example: Port qtcharts audio example to qtgraphsEce Cinucen2025-05-126-0/+143
| | | | | | | | Task-number: PYSIDE-841 Pick-to: 6.8 6.9 Change-Id: Id8a81c06078c147eb50f1f1d688841e8a6bab18b Reviewed-by: Friedemann Kleint <[email protected]> Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* doc: Add remoteobjects/modelview screenshotJaime Resano2025-04-031-0/+0
| | | | | | | | | | | | | | | Currently, the example docs refer to a non-existent image and the following error is shown: sources\pyside6\doc\examples\example_remoteobjects_modelview.rst:11: WARNING: image file not readable: examples/modelview.png This patch adds a screenshot of the application. Change-Id: I163fd68431e7ae87cb015cc49d75577a56f88969 Reviewed-by: Ece Cinucen <[email protected]> Reviewed-by: Shyamnath Premnadh <[email protected]> Reviewed-by: Jaime Resano <[email protected]>
* Example: Update widgetgraphgallery exampleEce Cinucen2025-03-053-54/+94
| | | | | | | | Updated according to the Qt example. Pick-to: 6.8 Change-Id: Id2e64b2ab46ddd25f80ff8cc64bfb13ed02a92c5 Reviewed-by: Friedemann Kleint <[email protected]>
* Use new 6.9 API in examplesFriedemann Kleint2025-02-067-107/+96
| | | | | | | Task-number: PYSIDE-2862 Change-Id: I45f0cafa5276ed7c387b903962f2845a23c327e8 Reviewed-by: Ece Cinucen <[email protected]> Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Remove old example address bookEce Cinucen2025-02-0510-1855/+0
| | | | | | | | Removed because it was one of the very old tutorials and currently there are many other examples that covers what this tutorial shows. Also there is not a corresponding example on the qt docs. Pick-to: 6.8 Change-Id: I4be1ef3e27827a19d13d6cbe168fda5e7f8a01c5 Reviewed-by: Friedemann Kleint <[email protected]>
* Example: Update simplebrowserEce Cinucen2025-01-307-9/+517
| | | | | | Pick-to: 6.8 Change-Id: Iaa596cb568f39cd9395f1a68030fa598b16c0787 Reviewed-by: Friedemann Kleint <[email protected]>
* Example: Add imageviewer exampleEce Cinucen2025-01-305-2/+188
| | | | | | | | | Add missing example from c++ (ported qtdoc/09bc4a6861b3a4d0ad1e7dc214b3fe1b6b423504). Zoom out icon for pdfviewer corrected Pick-to: 6.8 Change-Id: I1633a564e565d8f49892d7b6703d92a556c654f7 Reviewed-by: Friedemann Kleint <[email protected]>
* Scriptable application: Add a status label displaying the line numberFriedemann Kleint2025-01-202-0/+17
| | | | | | | | It is useful to fix errors when playing around. Pick-to: 6.8 Change-Id: I7a656914ae30f59a5eeb1c384dc18e44389a61c5 Reviewed-by: Christian Tismer <[email protected]>
* Use fully qualified enumerations in more examples, round 2Friedemann Kleint2025-01-0645-189/+203
| | | | | | | | | Complements 7189a4c5ec193d30c6bd4e68701038880cbc5982. Pick-to: 6.8 Task-number: PYSIDE-1735 Change-Id: Ifbfd48e953e74c18c02fbe075ad51dfeb56b97c9 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Use fully qualified enumerations in more examplesFriedemann Kleint2025-01-0672-540/+555
| | | | | | | Pick-to: 6.8 Task-number: PYSIDE-1735 Change-Id: Ic2c478ef363d73f65f366e21529c0429c86539aa Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Widget examples: Use fully qualified enumerationsFriedemann Kleint2024-12-1857-607/+622
| | | | | | | Pick-to: 6.8 Task-number: PYSIDE-1735 Change-Id: I99890e66ff29600072175185f471be0d7646c45b Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* standarddialogs example: Fix error when checking dialog optionsFriedemann Kleint2024-12-181-5/+6
| | | | | | | | | | | | | | | | | | | The helper widget displaying the dialog options used int(0) as default value when building the options flags, causing: standarddialogs.py", line 274, in set_color options_value = self._color_options.value() File "examples/widgets/dialogs/standarddialogs/standarddialogs.py", line 33, in value result |= value TypeError: unsupported operand type(s) for |=: 'int' and 'ColorDialogOption' options_value = self._color_options.value() Fix this by passing a zero value of the correct options type. Pick-to: 6.8 Task-number: PYSIDE-1735 Change-Id: Ia82edb2403a9b4580fe3202d75e77da86290fdfe Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Remove unnecessary use of 'object' in class constructionremoteobjectsdevCristián Maureira-Fredes2024-12-188-8/+8
| | | | | | | | | | | Considering we are not compatible with Python 2 anymore, we can drop the 'object' explicit inheritance in the class declaration. Pick-to: 6.8 Change-Id: Iac3a95aa9721c3ff1a755f457c0936ca157a8470 Reviewed-by: Shyamnath Premnadh <[email protected]> Reviewed-by: Friedemann Kleint <[email protected]>
* Documentation: Fix some warningsFriedemann Kleint2024-12-161-1/+1
| | | | | | Pick-to: 6.8 Change-Id: I8d370d76264884924136879238a5bffef489c19e Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Fix trailing empty linesFriedemann Kleint2024-12-139-11/+0
| | | | | | Pick-to: 6.8 Change-Id: I1a5964463f703ade0657816cb974206355a5ae5b Reviewed-by: Shyamnath Premnadh <[email protected]>
* Documentation/Examples: Add missing docsShyamnath Premnadh2024-12-1256-0/+321
| | | | | | | | | Some examples did not have any documentation. This patch adds the respective documentation. Pick-to: 6.8 Change-Id: I9698752b654c2df29fd3572f6bc66a9df56f9903 Reviewed-by: Friedemann Kleint <[email protected]>
* build: use posix_prefix to get installation pathCristián Maureira-Fredes2024-12-031-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | On Debian, Python 3.10 introduced some changes to the scheme in the system, defaulting to 'posix_local' instead of the 'posix_user' which was previously used, and is currently used in other Linux distributions. For example, these values got changed from (posix_user): data = '/usr' platlib = '/usr/lib/python3.10/site-packages' purelib = '/usr/lib/python3.10/site-packages' to (posix_local): data = '/usr/local' platlib = '/usr/lib/python3.10/dist-packages' purelib = '/usr/lib/python3.10/dist-packages' This change forces the usage of the 'posix_user' scheme. Fixes: PYSIDE-2003 Pick-to: 6.8 Change-Id: Ice0ca9adc37c2652f5ef6ce9e0aec0f2f324206b Reviewed-by: Shyamnath Premnadh <[email protected]> Reviewed-by: Friedemann Kleint <[email protected]>
* Examples: Add doc for some QML examplesShyamnath Premnadh2024-12-0210-159/+46
| | | | | | | | | | | | | | - The examples without 'doc' are not clickable in the documentation. Hence, the examples that demonstrate QML to Python signal-slot interactions was broken in the documentation. - This patch adds the documentation for the missing examples. - Additionally, 2 examples were removed because the functionality was already covered in other examples. Pick-to: 6.8 Change-Id: I2d397b47426cc1941914ceb3f66b5f7f98968c09 Reviewed-by: Ece Cinucen <[email protected]> Reviewed-by: Friedemann Kleint <[email protected]>
* Brush up the document viewer demoFriedemann Kleint2024-11-291-9/+5
| | | | | | | | Adapt to qtdoc/1c75be529062c08291da10cff40b5116de11adb1. Pick-to: 6.8 Change-Id: I14ddc49684c8546e5bcfbcb6123b64a0faa04165 Reviewed-by: Shyamnath Premnadh <[email protected]>
* Example: Fix on slider in example playerEce Cinucen2024-11-291-3/+10
| | | | | | | | Slider was not adjusting the volume. This bug on multimedia/player example fixed. Pick-to: 6.8 Change-Id: If73eed44959acaf66727412f2ddff42eb616abee Reviewed-by: Christian Tismer <[email protected]>
* Delete QQmlApplicationEngine on application exitJaime Resano2024-11-2518-31/+45
| | | | | | | | | | | | | | Due to the API limitations, we have to ensure that the engine is deleted before other parts of the application is deleted. Otherwise exposing objects using setInitialProperties() or setContextProperty() for example will cause warnings to be printed. It is a good practice to always delete the engine manually so all the code should be consistent. Task-number: PYSIDE-1612 Pick-to: 6.8 Change-Id: I01f16359e9d90cefd5957708fe12ce489bd7edc0 Reviewed-by: Jaime Resano <[email protected]> Reviewed-by: Friedemann Kleint <[email protected]>
* Fix the bars.pyproject fileFriedemann Kleint2024-11-211-1/+1
| | | | | | | | | Amends abfc11c4c2fb5cd35db910284c53b4e2e282b3fe. Task-number: PYSIDE-841 Pick-to: 6.8 Change-Id: I6f53d08f5838ed5e6e7a7b254405741e5d70859b Reviewed-by: Shyamnath Premnadh <[email protected]>
* Example: Add simple bar graphEce Cinucen2024-11-218-0/+692
| | | | | | | | | Adding missing example from c++ Task-number: PYSIDE-841 Pick-to: 6.8 Change-Id: I36fe2cafd7bc50a76e2f261635c702ce0ee30329 Reviewed-by: Shyamnath Premnadh <[email protected]>
* Brush up the mandelbrot exampleFriedemann Kleint2024-11-181-24/+26
| | | | | | | | | | Fully qualify enumerations and make some conversions explicit. Pick-to: 6.8 Task-number: PYSIDE-1735 Task-number: PYSIDE-2916 Change-Id: Ib6dffb2de7b1cb5a32da67801459d44d771a6d7c Reviewed-by: Christian Tismer <[email protected]>
* Finance Manager - Part 3 - DocumentationShyamnath Premnadh2024-11-141-0/+11
| | | | | | | | | | - Expanding on part2 documentation to include detailed steps on creating a backend REST API using FastAPI and SQLite. Pick-to: 6.8 Task-number: PYSIDE-2850 Change-Id: Icfe2b9582e53b1fc59a67be661da1c5fe290fe6f Reviewed-by: Friedemann Kleint <[email protected]>
* Documentation: Typo fixEce Cinucen2024-11-131-1/+1
| | | | | | | | Typo fixed in the example Pick-to: 6.8 Change-Id: Ibf0b9c5d996eba5eb60ba77d1492b84a480670bd Reviewed-by: Shyamnath Premnadh <[email protected]>
* Finance Manager - Part 3 - ExampleShyamnath Premnadh2024-11-1313-0/+732
| | | | | | | | | | - Expands on part2 by adding a FastAPI Backend thereby creating a REST API to interact with the database. Pick-to: 6.8 Task-number: PYSIDE-2850 Change-Id: Ibdcc47b7998923616959e6001eda0de6cabd300c Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Finance Manager - Part 2 - DocumentationShyamnath Premnadh2024-11-131-0/+11
| | | | | | | | | | - This tutorial expands on part1 by integrating SqlAlchemy with PySide6, by storing the data in a SQLite database. Pick-to: 6.8 Task-number: PYSIDE-2850 Change-Id: I195149bd861b1fb1a25623a9fe05e42f1e85054c Reviewed-by: Friedemann Kleint <[email protected]>
* Finance Manager - Part 2 - ExampleShyamnath Premnadh2024-11-1311-0/+656
| | | | | | | | | | | - Example that extends on the Finance Manager application from Part 1 to use a SQLite database to store the data, thereby showing the how to use SqlAlchemy with PySide6. Pick-to: 6.8 Task-number: PYSIDE-2850 Change-Id: I2cce6d033812796ea2fe5cc200c1854494a308f5 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Finance Mananger - Part 1 - DocumentationShyamnath Premnadh2024-11-131-0/+12
| | | | | | | | | | | | - Detailed tutorial with instructions, explanaton of code concepts, gifs, steps to run and deploy the application. - Additionally, register a new role {deco} to be used in markdown. It is the same as :deco: in reStructuredText. Pick-to: 6.8 Task-number: PYSIDE-2850 Change-Id: Icb732e830948ee7ad1cb9dcf6bd07b5077c89497 Reviewed-by: Friedemann Kleint <[email protected]>
* Finance Manager - Part 1 - ExampleShyamnath Premnadh2024-11-139-0/+574
| | | | | | | | | | | | - Example of a simple finance manager application that allows the user to add expenses and view them in a pie chart. - Part 1 of the Finance Manager tutorial series. Pick-to: 6.8 Task-number: PYSIDE-2850 Change-Id: If13ea04d4e734fe93bfbacc37a121ff902211629 Reviewed-by: Friedemann Kleint <[email protected]> Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Example: Add zoomlinechartEce Cinüçen2024-11-116-0/+164
| | | | | | | | | Adding missing example from c++ Task-number: PYSIDE-841 Pick-to: 6.8 Change-Id: I029d7c2c20affa2445e9558403bdaf114fa0f847 Reviewed-by: Shyamnath Premnadh <[email protected]>
* Documentation: Use more references in the QML tutorial examplesFriedemann Kleint2024-11-079-33/+37
| | | | | | Pick-to: 6.8 Change-Id: Id40b51d321830477ad67545ef0e96124ccafc894 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Port the osmbuildings demo (maps part)Friedemann Kleint2024-10-1810-0/+793
| | | | | | | | | The buildings part was omitted as it requires a license key. Task-number: PYSIDE-2206 Pick-to: 6.8 Change-Id: I561fb098786d9e894e5102073db3e7d02f66d8f9 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Documentation/examples: Show/bundle utils/pyside_config.pyFriedemann Kleint2024-10-043-4/+7
| | | | | | Task-number: PYSIDE-2882 Change-Id: Id3c5e0d934b36b0a1f43069022f7be9060f0ea8b Reviewed-by: Shyamnath Premnadh <[email protected]>
* widgetgraphgallery: Fix up and port away from deprecated ↵Friedemann Kleint2024-09-186-49/+44
| | | | | | | | | | | | QCheckBox::checkStateChanged() Adapt to qtbase/3512fb1ec5ff088772170540c4e91b1886fbea45 . Remove obsolete options and adapt to some API changes. Task-number: PYSIDE-2620 Change-Id: I11738858cc9107129c0d0137043bae65d8cb4ac9 Reviewed-by: Cristian Maureira-Fredes <[email protected]> Reviewed-by: Shyamnath Premnadh <[email protected]>
* Update Qt Widgets Designer formsFriedemann Kleint2024-09-1855-250/+312
| | | | | | | | Load and save once so that fully qualified enumerations are used. Task-number: PYSIDE-2846 Change-Id: I544467c1d9254533bf62e1344c26c90c7d17d118 Reviewed-by: Shyamnath Premnadh <[email protected]>
* PySide6/SerialBus: Fix CAN bus exampleFriedemann Kleint2024-09-182-5/+5
| | | | | | | | Amends e4199ec3881d8e556385af98084856be857e0dbe . Task-number: PYSIDE-2846 Change-Id: I562aa4cfb30b92b698be440d3302ecd06f7d6722 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Port away from deprecated QCheckBox::checkStateChanged()Friedemann Kleint2024-09-182-4/+4
| | | | | | | | | Adapt to qtbase/3512fb1ec5ff088772170540c4e91b1886fbea45 . widgetgraphgallery will be fixed in a separate change. Change-Id: I1b6ebb56bf17fb64581e0180fce236255c5114fd Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* type hints: Fix some typing bugs for mypy (forgiveness)Friedemann Kleint2024-09-18123-359/+370
| | | | | | | | | | | | | The new enums still support old syntax by the forgiveness mode. Nevertheless, when using mypy to check files, strict correctness is enforced. We correct a large number of forgiveness-induced errors, but there is still a whole lot of other complaints to fix. Task-number: PYSIDE-2846 Change-Id: If566187d268ef75bc09b8d86f73d2c7d19f284f9 Reviewed-by: Friedemann Kleint <[email protected]>
* QtHttpServer: Fix exampleFriedemann Kleint2024-09-094-11/+18
| | | | | | | | | | Rename the example, adapt to 6.8 and add a pyproject file. Make it clear that it is a simplified version. Task-number: QTBUG-128113 Task-number: PYSIDE-2620 Change-Id: If6cb578f3f0c7405041404f90e014dcfb3903e03 Reviewed-by: Shyamnath Premnadh <[email protected]>
* Adapt the graphs examples to 6.8Friedemann Kleint2024-09-0514-582/+482
| | | | | | Task-number: PYSIDE-2620 Change-Id: If99122740848dacff2850549fdd8ff912a100a1b Reviewed-by: Shyamnath Premnadh <[email protected]>
* Documentation: Remove example anchorsFriedemann Kleint2024-08-1623-58/+12
| | | | | | | The example_gallery tools also adds anchors, use these instead. Change-Id: I488250fae608cf50804c3edfe0ec12d4aa08194a Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Docs: Fix broken links from base documentationShyamnath Premnadh2024-08-162-2/+2
| | | | | | | | - Many https links and sphinx references which were broken have been fixed. Change-Id: Ia10a44bbbbe4ed7e761c72042b45a46030d02186 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Docs: Update examples documentation to use sphinx referencesShyamnath Premnadh2024-08-141-4/+4
| | | | | | | | | | | | | - The autogenerated examples documentation was updated to use sphinx references instead of relative paths because they are easier to maintain. - Additionally the 'bindings.rst' was updated to use the correct sphinx references. This has been historically broken. Task-number: PYSIDE-2837 Change-Id: I0c9f2f2e40dbadf8387e62cae05ff7aa12f43f72 Reviewed-by: Friedemann Kleint <[email protected]> Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* widgetbinding example: Add missing files to the downloadFriedemann Kleint2024-08-141-1/+4
| | | | | | | Pick-to: 6.7 6.5 Change-Id: I8d5ab02e25dda5e04c501cd5e5ad1021dae00e76 Reviewed-by: Shyamnath Premnadh <[email protected]> Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* build: remove pyopengl dependencyCristián Maureira-Fredes2024-08-136-0/+6
| | | | | | | | | | | PyOpenGL is only used for a few modules, not the build process. This removes the requirements.txt entry and add one file on each example that uses it. Change-Id: Ia0965eb97645343b7e2c96095bef7c9ba46b322a Reviewed-by: Friedemann Kleint <[email protected]>
* Use QQmlApplicationEngine.setInitialProperties() in the minibrowser exampleFriedemann Kleint2024-08-082-8/+2
| | | | | | | | | | Port qtwebview/3cbbf09d189db4dd1d9421f86446e3b03831a2a0. Amends c042e74cb490905c5cf5dc7d1c3887f627291019. Task-number: PYSIDE-2206 Pick-to: 6.5 6.7 Change-Id: Ic372da014132c19bed187ff369403ed0fd09bcb5 Reviewed-by: Cristian Maureira-Fredes <[email protected]>
* Examples: Add minibrowserShyamnath Premnadh2024-08-0512-0/+608
| | | | | | | | | - tests the working of the QtWebView module Task-number: PYSIDE-2206 Pick-to: 6.5 6.7 Change-Id: I8d75e427f1b26ead1d37693701fe77cca9e4c03b Reviewed-by: Friedemann Kleint <[email protected]>
* QtAsyncio: Fix wrong args in examplesAdrian Herrmann2024-07-052-2/+2
| | | | | | | | | | The minimal and eratosthenes examples kept now-invalid arguments to QtAsyncio.run() as leftovers from a previous change. Pick-to: 6.7 Task-number: PYSIDE-769 Change-Id: I64ec3dcf136f44b757ef93743b96aa0a2d8a91be Reviewed-by: Friedemann Kleint <[email protected]>