aboutsummaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Update the QtBluetooth/heartrate_game exampleFriedemann Kleint15 hours22-176/+448
| | | | | | | | | | Adapt to qtconnectivity/375e0e2c74adad9b609f5e48dffb88b07158bbfe. Pick-to: 6.10 6.9 6.8 Task-number: PYSIDE-2206 Task-number: QTBUG-118905 Change-Id: Ifb19d0f3226fdfbba862f65eaa1ffeb0be962646 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Move painteditem example around to be in sync with Qt C++Friedemann Kleint15 hours5-0/+0
| | | | | | | | Pick-to: 6.10 Task-number: PYSIDE-2206 Change-Id: Iec8dbf9750adf87980bf272a14a78556f6445408 Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Update the QML basic extending tutorialsFriedemann Kleint15 hours24-88/+105
| | | | | | | | Adapt to qtdeclarative/bb6cde5229bd15f6e233262ae46fffeda666cf3d. Pick-to: 6.10 Change-Id: Id6d7f15efbe776987a88779a769653b92d44608c Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Update examples (simple cases)Friedemann Kleint15 hours9-320/+339
| | | | | | | Task-number: PYSIDE-2206 Pick-to: 6.10 Change-Id: Ib97a137fcbe9c1fca839743f4a8d41599794ad04 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix the webenginequick/nanobrowser example to workFriedemann Kleint7 days2-0/+294
| | | | | | | | | | | Update the QML files from 6.10 and add qmldir, fixing: QQmlApplicationEngine failed to load component file:///...examples/webenginequick/nanobrowser/ApplicationRoot.qml:22:48: Type BrowserWindow unavailable file:///...examples/webenginequick/nanobrowser/BrowserWindow.qml:823:5: WebAuthDialog is not a type Pick-to: 6.10 Change-Id: I171b863cbcccb3444249370e0f3bfdfdd7fcff63 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Update MapViewer exampleFriedemann Kleint7 days3-1/+45
| | | | | | | | | | | | | Update the QML files and set the desktop file name, fixing warning: positioning.geoclue2: Neither desktopId plugin parameter nor QGuiApplication::desktopFileName has been set. Please consider setting one of the two. added by qtpositioning/720b0cdc6c33c806fad0a27c2e249e85d16e8055. Pick-to: 6.10 Change-Id: I8e24f441776168a07da29b52f2675d5ce75f9ab7 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Update gallery example QML filesFriedemann Kleint7 days39-1677/+3320
| | | | | | | | | | | | Adapt to the changes up to qtdeclarative/aa86812fed59516313e561dfa40cdf77956857f4. This adds a number of new controls, new styles and fixes a warning: file::/gallery.qml:48:5: QML Shortcut: Shortcut: Only binding to one of multiple key bindings associated with 1. Use 'sequences: [ <key> ]' to bind to all of them. Pick-to: 6.10 6.9 Change-Id: I05d642f6784424c01ff2abb4d9b30c60ad725b3f Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Widgetbinding: Use Shiboken6Tools cmake packageShyamnath Premnadh12 days3-156/+41
| | | | | | Task-number: PYSIDE-3138 Change-Id: Ic78909b498c38bd2dfbffb00a90c503cfa812c34 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Samplebinding: Use Shiboken6Tools cmake packageShyamnath Premnadh12 days3-145/+41
| | | | | | | | | | | | | | | | - By using Shiboken6Tools CMake package, the dependency on `pyside_config.py` can be removed, and much code can be simplified. - Modify the generated library so that it is built with Limited-API support. - wheel_tester.py adjusted during testing so that the correct Python is identified i.e. in the case of venv, the Python from venv should be used by FindPython instead of the system Python. - Adjust 'Shiboken6ToolsConfig.cmake.in' to also use a dynamically computed `Python_SITELIB` to support RHEL systems. Task-number: PYSIDE-3138 Change-Id: I711cdbd04c7b35459f0c775d8eb76f1c85acc188 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Fix editing contacts in the quickcontrols/contactslist exampleFriedemann Kleint2025-08-256-21/+37
| | | | | | | | | | | | | Adapt to qtdeclarative/a867363541b59b8e36d56717ff2cb3a271df5997. Update the .qml files and fix the contact model to work. Pick-to: 6.9 6.8 Task-number: QTBUG-119987 Fixes: PYSIDE-3167 Change-Id: Ib27ef248f539c130baa0f04d6c9a6938f718882d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Ece Cinucen <ece.cinucen@qt.io>
* Port widgetgraphgallery to QRangeModelFriedemann Kleint2025-08-137-268/+48
| | | | | | | | Adapt to qtgraphs/467bcff49d9733ef7c564b6ee0ceffb66a03292d. Task-number: PYSIDE-3011 Change-Id: I875631e17411ca1804854eabad8ef4a0d8be7cea Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Add QRangeModel exampleFriedemann Kleint2025-08-133-0/+95
| | | | | | Task-number: PYSIDE-3011 Change-Id: I36d115fd150419bc631e3ea4706e217500d00152 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* widgetgraphgallery: Fix crash in textured surface graphFriedemann Kleint2025-08-121-8/+8
| | | | | | | | | | | | | | Some invalid Python code caused the highlight series to be empty and a subsequent crash. Also, adapt to qtgraphs/98029f9d71c7ae8c5c8f052b03f350ad23e8759c by swapping coordinates. Pick-to: 6.9 6.8 Fixes: PYSIDE-3153 Task-number: QTBUG-116785 Change-Id: I6366cb4858fad29e46fac01efbb6c26675c743b8 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* doc: move sounds to qtds tutorialCristiΓ‘n Maureira-Fredes2025-08-0713-16/+11
| | | | | | | | | | In order to enable the deployment tool, we need to have the Sounds in the same directory. Ammends efd8944b263a099e901ab588bc2d9357554f6ead Change-Id: Idd89ba3b1624f24ed2c36d45af3d09802eb9b22d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Add Qt Design Studio tutorialJaime Resano2025-07-2956-0/+1882
| | | | | | | | | | | | Add a new Qt Design Studio tutorial to the documentation. The "Drumpad" example is added to the examples/tutorials folder, with both initial and final projects. The required Sounds are in a directory at the same level as both tutorials in order to reduce space. Change-Id: I59fdd662775ae48ee04e663d4aa5aa8cb333fcd5 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Update the quicknanobrowser example from C++Friedemann Kleint2025-07-285-41/+143
| | | | | | | | | | | | Fixes warnings: Unknown File>: QML WebEngineProfile: Please use WebEngineProfilePrototype for profile creation from 6.9, as this function will be deprecated in the future releases <Unknown File>: QML WebEngineProfile: Please use WebEngineProfilePrototype for profile creation from 6.9, as this function will be deprecated in the future releases Storage name is empty. Cannot change profile from off-the-record to disk-based behavior until a proper storage name is set Switching to disk-based behavior Pick-to: 6.9 Change-Id: Ie46aefdd522cbdb47bd8a0ac152ab61e7c69f50c Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix charts examples to run with Python 3.14Friedemann Kleint2025-07-242-2/+2
| | | | | | | | | | Default-constructing flags no longer works in Python 3.14, add value. Pick-to: 6.9 6.8 Task-number: PYSIDE-3147 Change-Id: Idd1d123fb38ee60d4877440521dca57f997a69db Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Ece Cinucen <ece.cinucen@qt.io>
* lineandbar example: Fix warnings about adding axesFriedemann Kleint2025-07-241-1/+1
| | | | | | | | | | | | Fix: "Can not add axis. Axis already on the chart." "Can not find axis on the chart." "Can not find axis on the chart." Pick-to: 6.9 6.8 Change-Id: I95f6201635008f8b751448a035d301046723c29e Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* PySide: Modify samplebinding, widgetbinding and scriptableapplicationShyamnath Premnadh2025-07-044-7/+37
| | | | | | | | | | | | | | | - With 6e7e6565024 the libshiboken headers were moved from `shiboken_generator/include` to `shiboken/include` in the installation directory. The reason behind this was libshiboken binary was shipped with shiboken and not shiboken_generator. - Update utils/pyside_config.py to return --shiboken-include-path instead of --shiboken-generator-include-path, which is used by samplebinding and scriptableapplication examples. - Additionally, add some debug messages to the CMakeLists.txt files of both examples to print the computed variables. Change-Id: Ie88283e074ba73d1103a66fe7cf6923a1a9fa048 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Remove QtExampleIcons moduleFriedemann Kleint2025-07-041-6/+0
| | | | | | | | | | The module will be removed from Qt since it is not used there. This effectively reverts 559fb65547236694dc04973f7fb6b39bac75d158. Task-number: PYSIDE-2206 Task-number: QTBUG-110428 Change-Id: I149c1e6a2c3672050b4d1ba4633f07c7cdac5c1d Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Camera example: Fix choosing a cameraFriedemann Kleint2025-07-011-1/+1
| | | | | | | | | The camera device is stored in the action's data. Fixes: PYSIDE-3127 Pick-to: 6.9 6.8 Change-Id: I6dd252ceaab038311b48b1511072682d3a6e2c1e Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Examples: Sync project fileChristian Stenger2025-06-271-54/+282
| | | | | | | | Project file got out of sync with what is present inside the examples folder, so update it accordingly. Change-Id: I3d6ec79b352a5589f73f8b6253a594bab21a8436 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Add overload for QDomDocument.setContentEce Cinucen2025-05-241-4/+5
| | | | | | | | - Updated type system to add the missing overloaded function with QByteArray and ParseOptions. - Deprecated use of QDomDocument.setContent fixed on QtXml test cases and dombookmarks example. Change-Id: I78b5c2f3be44362c0b871009bcf6c305b3a77798 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* example dombookmarks.py: Fix disconnection warningFriedemann Kleint2025-05-231-6/+5
| | | | | | | | | Use a connection id instead of try-catch Pick-to: 6.9 6.8 Change-Id: Ia76880a32df8fc6e415f056606c0df98fe772257 Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* 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 <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* 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 <ece.cinucen@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Jaime Resano <gemailpersonal02@gmail.com>
* 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 <Friedemann.Kleint@qt.io>
* Use new 6.9 API in examplesFriedemann Kleint2025-02-067-107/+96
| | | | | | | Task-number: PYSIDE-2862 Change-Id: I45f0cafa5276ed7c387b903962f2845a23c327e8 Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* 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 <Friedemann.Kleint@qt.io>
* Example: Update simplebrowserEce Cinucen2025-01-307-9/+517
| | | | | | Pick-to: 6.8 Change-Id: Iaa596cb568f39cd9395f1a68030fa598b16c0787 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* 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 <Friedemann.Kleint@qt.io>
* 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 <tismer@stackless.com>
* 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 <cristian.maureira-fredes@qt.io>
* 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 <cristian.maureira-fredes@qt.io>
* 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 <cristian.maureira-fredes@qt.io>
* 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 <cristian.maureira-fredes@qt.io>
* 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 <Shyamnath.Premnadh@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Documentation: Fix some warningsFriedemann Kleint2024-12-161-1/+1
| | | | | | Pick-to: 6.8 Change-Id: I8d370d76264884924136879238a5bffef489c19e Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix trailing empty linesFriedemann Kleint2024-12-139-11/+0
| | | | | | Pick-to: 6.8 Change-Id: I1a5964463f703ade0657816cb974206355a5ae5b Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* 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 <Friedemann.Kleint@qt.io>
* 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 <Shyamnath.Premnadh@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* 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 <ece.cinucen@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* 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 <Shyamnath.Premnadh@qt.io>
* 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 <tismer@stackless.com>
* 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 <Jaime.RESANO-AISA@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* 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 <Shyamnath.Premnadh@qt.io>
* 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 <Shyamnath.Premnadh@qt.io>
* 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 <tismer@stackless.com>
* 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 <Friedemann.Kleint@qt.io>
* Documentation: Typo fixEce Cinucen2024-11-131-1/+1
| | | | | | | | Typo fixed in the example Pick-to: 6.8 Change-Id: Ibf0b9c5d996eba5eb60ba77d1492b84a480670bd Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>