aboutsummaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Rename the simple widgets browser to widgetsnanobrowserFriedemann Kleint2023-03-296-11/+11
| | | | | | | | | | Preparing for a re-port of the C++ simple browser Task-number: PYSIDE-2206 Change-Id: Iaa89e91f5949089b5ef87cea697595e122e6e22b Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 6fac378e4bf0c7b07aca2604131b290267d4ff0a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* example: add qtquickcontrols filesystemexplorerDennis Oberst2023-03-2927-1/+1223
| | | | | | | | | | | This example was ported from the qt/quickcontrols repository Task-number: PYSIDE-2224 Change-Id: Id323d21a4ae40f2105fe1e3858a16254aebc04e6 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit da36b993a497a9605a532558eec03dc292591bd5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Re-port the camera exampleFriedemann Kleint2023-03-2815-152/+1966
| | | | | | | | Task-number: PYSIDE-2206 Change-Id: I0f7e66eedf92c0d00ed47d6e55acec7c1819065b Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 6c3bd4a359421bc094dd4827fae4bce32bf07d63) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Unify the shiboken sample binding example descriptionFriedemann Kleint2023-03-274-2/+50
| | | | | | | | | | | | | | Merge the description from the shiboken documentation into the newly added example samplebinding.rst file, re-using the existing image. Add the sections from the shiboken documentation to the source files via .rstinc files. Task-number: PYSIDE-1106 Change-Id: I22f7302aa10ce2a47283b01315b2d4c9daf9f9ed Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit ce1a52c4eb037eac1aab6da39f4b5555906c3842) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update example logosFriedemann Kleint2023-03-278-1839/+1738
| | | | | | | | | | | Remove the unused logo in the animation example. Task-number: PYSIDE-2206 Change-Id: I5726651f95b3abeb78b6ea422786b97b7a4aad4b Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 1be36e4504093a14c8f2b46141386bb4a0a4773f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* quicknanobrowser example: Update QML filesFriedemann Kleint2023-03-272-15/+77
| | | | | | | | | Task-number: PYSIDE-2206 Change-Id: If2e1027a2414d3a7df05b6ad6f56eb5cd400cd72 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 2b371344c9c4f2570a63d3ac79fa79266e58817d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update the markdowneditor exampleFriedemann Kleint2023-03-272-4/+5
| | | | | | | | | | | Apply qtwebengine/571d47367c69ae4844a2c1079fbca9108cf284db. Fix some errors in the code. Task-number: PYSIDE-2206 Change-Id: I70718d55f6932cc8d82bcb5a052a7585f1cdef12 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit 50165b384652d8751813d63178e3436913fc5755) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove the macpasteboardmime exampleFriedemann Kleint2023-03-272-93/+0
| | | | | | | | | | QtMacExtras has been removed in Qt 6. Task-number: PYSIDE-2206 Change-Id: I42af6f34d8f396415e83deae09b3de021fb580eb Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit f63d19c10f8d60a2acbe35e4f8ac2f7ae1ef017a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove generated files from the example project filesFriedemann Kleint2023-03-2316-20/+16
| | | | | | | | Task-number: PYSIDE-1106 Change-Id: Ic198a3ff73a82f4ad490fdb90d0a1aa839f5ebb2 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> (cherry picked from commit ae47e8fa7e6b7c7abf7257936cb208e8b5034b6a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Re-port the hello_speak exampleFriedemann Kleint2023-03-219-76/+653
| | | | | | | | | | The UI has been extended since the last port. On this occasion, fix the example folder to be in line with Qt. Task-number: PYSIDE-2206 Change-Id: I5b6e73375ae7b81adb387822d1da5eaf66ffcf9c Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* examples: Use new enums in asyncio examplesAdrian Herrmann2023-03-204-8/+8
| | | | | | | | | Use the new enum syntax in the asyncio examples instead of relying on forgiveness mode. Pick-to: 6.4 Task-number: PYSIDE-2169 Change-Id: I0faa384586e27f13643688b55ea03393da502753 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* doc: migrate to sphinx-design and update sphinxCristián Maureira-Fredes2023-03-171-0/+0
| | | | | | | | | | | | | | | | | | | | sphinx-panels is deprecated, and sphinx-design is the better replacement. This patch migrates everything we had in pyside and shiboken, which was useful to remove many CSS related hacks for things we were forcing before. The example gallery was also adapted to generate sphinx-design valid code. Additional adaptation to some examples and files were included as well, which improved the overall example experience. We used this to change to update sphinx as well, which before was not possible to update due to sphinx-panels. Fixes: PYSIDE-2244 Change-Id: Ia3f57f536591ea299bf87302e930203b64fafd7e Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Add the QtLocation/MapView exampleFriedemann Kleint2023-03-1633-0/+2902
| | | | | | | | Task-number: PYSIDE-2206 Change-Id: I2eea18a5105e545a1582ecb4ca91bb089f43f7f7 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com>
* graphgallery example: Fix licenseFriedemann Kleint2023-03-161-1/+1
| | | | | | | | | | Amends 558adfebf001bce0da4b972626fd8a889dd7e757. Task-number: PYSIDE-2206 Task-number: QTBUG-110698 Change-Id: I36feacf585d5908fa393f5560bc704e8fe52731c Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* Add the qmlsurfacegallery exampleFriedemann Kleint2023-03-1613-0/+42660
| | | | | | Task-number: PYSIDE-2206 Change-Id: I2f67db46afa4f9cd99024aeb4fe986bc16fe7f3b Reviewed-by: Christian Tismer <tismer@stackless.com>
* doc: adjust usage of -uic and -rcc toolsCristián Maureira-Fredes2023-03-161-1/+1
| | | | | | | | | | We encourage people to use the option '-o' rather than '>' to avoid having output messages inside the generated file. Change-Id: Ie45303265c8f391c4e54e0e2af9d7e810a0797aa Pick-to: 6.2 6.4 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* Port the graphgallery exampleFriedemann Kleint2023-03-1429-0/+7932
| | | | | | | | | Task-number: PYSIDE-2206 Task-number: QTBUG-110698 Change-Id: I91266eeea7197f097ded1c864e21e23e98854f35 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Improve the Quick Controls Gallery exampleFriedemann Kleint2023-03-1011-6874/+2833
| | | | | | | | | | | | Take over the changes from the C++ example (qtdeclarative/730c1d16301ba5b3a27700741b7092290ca03279). As a drive-by, remove generated file from the project file. Task-number: PYSIDE-2206 Task-number: QTBUG-110989 Change-Id: I5fef51e2022d44cc05433b18cb79a6f7b3531e7d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Move examples/quickcontrols2 to examples/quickcontrolsFriedemann Kleint2023-03-0666-0/+0
| | | | | | | | | Adapt to qtdeclarative/8b100bed5237b1ec864f059d7fb04b94fd874f49. Task-number: PYSIDE-2206 Task-number: QTBUG-95413 Change-Id: I849b4c6130f96e8d41a622f660b182770bdf7882 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Switch the widget binding example to C++ 17Friedemann Kleint2023-03-061-2/+2
| | | | | | | Pick-to: 6.4 Change-Id: I08a2a5f1fdb029a3aefde4919b4f16b7460ec6e7 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* examples: Improvements to the asyncio examplesAdrian Herrmann2023-03-026-73/+87
| | | | | | | | | | | | | | | | | - The asyncio AsyncHelper enters a quasi idle loop of switching between the asyncio event loop and the Qt event loop, where the asyncio event loop never receives new work at some point (besides yielding to Qt) and wastes memory and CPU cycles. Remedy this by signaling to AsyncHelper when asyncio's work is done. - Don't pass signals as parameters. - Fix comments in the asyncio examples that mentioned Trio. - Renamed the requirements files as only the Trio examples need them. - Remove unused imports. Pick-to: 6.4 Task-number: PYSIDE-2169 Change-Id: Ia7197ea3446dd6ae514089b0dd260214c458db6a Reviewed-by: Christian Tismer <tismer@stackless.com>
* examples: Remove the Find Files exampleAdrian Herrmann2023-03-022-187/+0
| | | | | | | | | | | | | | | | | | The example follows bad and outdated practices: - running time consuming and I/O heavy workload in the GUI thread - calling processEvents to keep the UI responsive - showing results only at the end of a search rather than continuously Perhaps this example can be rewritten at some point to apply modern practices (at least use a thread and emit signals), but it seems to have low overall educational value. Fixes: QTBUG-111002 Task-number: QTBUG-108751 Task-number: PYSIDE-2206 Change-Id: I6bd6a77e34fa59de548e2ba53483eda092165c33 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* example: Add Low Energy Scanner - QtBluetoothShyamnath Premnadh2023-02-2218-0/+1809
| | | | | | | | Task-number: PYSIDE-841 Task-number: PYSIDE-2194 Change-Id: I54dee9d9504c20c39742781ca9cb1d176568af86 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Remove the codeeditor exampleFriedemann Kleint2023-02-205-131/+0
| | | | | | | | | Following qtbase/48a1a5564f89e1e8f0b6f4a28398e4ae0b3f751c. Task-number: PYSIDE-2206 Change-Id: I6aa4b84133bb3d1ebb030f5db098fe1f341b6029 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com>
* Adapt the widgetbinding exampleFriedemann Kleint2023-02-202-6/+9
| | | | | | | | | Port qtbase/4a5abfcea4ec2e494efd117d278a929f020816c0, fixing the C++ code to handle UCS4 Emojis correctly. Task-number: PYSIDE-2206 Change-Id: Ia5cdf7e6579b1400dc16ca47ec2adcd6cfe66877 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Adapt the standarddialogs exampleFriedemann Kleint2023-02-201-29/+56
| | | | | | | | | Follow up qtbase/5789ffd9ccd67ffaa45f42fe3e96355ad7311eb4, qtbase/83b31a3d99dd96fadd65c25dc6b2b5de1351e300. Task-number: PYSIDE-2206 Change-Id: Ib51be975f9358c9d9f9d64505a2f175ce5769ab1 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Add license headers to cmake filesFriedemann Kleint2023-02-163-0/+9
| | | | | | | | | | | | CMakeLists.txt and .cmake files of significant size (more than 2 lines according to our check in tst_license.pl) now have the copyright and license header. Task-number: QTBUG-105718 Task-number: QTBUG-88621 Change-Id: I98bd2e80f182d8bf7aef6b633f37a428e2dac69b Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* doc: fix build warningsCristián Maureira-Fredes2023-02-033-4/+4
| | | | | | | | | Issues were found related to images, indentation level, and old references. Pick-to: 6.4 Change-Id: Idb343d4b3660ec44148fffd2de978ea868c56e90 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PySide6-examples: Improve charts selected point configuration exampleKeith Kyzivat2023-02-012-89/+84
| | | | | | | | | | Update pointconfiguration example to be more pythonic. Note that this example requires Qt 6.5. Task-number: PYSIDE-841 Change-Id: I0dc63f5df4c94af1ef2654ed023b9eb86d34a0ae Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6-examples: Charts selected point configuration exampleKeith Kyzivat2023-01-195-0/+325
| | | | | | | | | Add an example that shows how to customize individual points on a chart, such as changing the color or providing a a custom label. Task-number: PYSIDE-841 Change-Id: I09b48dd4e77f03355d1bb1207d7666a9fb3801f0 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
* matplotlib examples: Fix qtagg importFriedemann Kleint2023-01-102-3/+3
| | | | | | | Fixes: PYSIDE-2185 Pick-to: 6.4 6.2 Change-Id: I696ee409a95a67b64bf6c817f0a88782ac106586 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Add the Quick custom geometry exampleFriedemann Kleint2022-12-204-0/+196
| | | | | | Task-number: PYSIDE-1345 Change-Id: I7000878e3b2e83570653ca10ba084e133fec3cce Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* examples: Add asyncio versions of async examplesAdrian Herrmann2022-12-098-20/+363
| | | | | | | | | | | The minimal + eratosthenes examples for async were previously based on the Trio async package, now there are also versions based on the asyncio package with minimal changes. Task-number: PYSIDE-769 Pick-to: 6.3 6.4 Change-Id: I5c1220e1c8ebeefb9a530745e52d8f907e08bb2c Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Build system: Use modern form of finding and linking Qt librariesFriedemann Kleint2022-11-292-6/+2
| | | | | | | Pick-to: 6.4 Task-number: PYSIDE-962 Change-Id: I91aed62a8e14bbc1101b4f23e25f57a5d6bca173 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* wheel_tester.py: Test pyside6-deployFriedemann Kleint2022-11-111-1/+4
| | | | | | | Change-Id: Ia82bc0f56c37f24fcdf6454b2b6106cad4ed92d7 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* async: Fix formatting in rst documentationAdrian Herrmann2022-11-102-16/+16
| | | | | | | | | Indentations were wrong. Pick-to: 6.4 Task-number: PYSIDE-769 Change-Id: If021423787959d940e92cbc75624430adf5d03ce Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* PySide6-examples: Charts lightMarker and selectionKeith Kyzivat2022-11-089-0/+550
| | | | | | | | | | Provide a python implementation of the pointselectionandmarkers Charts example. Pick-to: 6.4 Task-number: PYSIDE-841 Change-Id: I9a5295cb89f9e1a400e21f6dbd90d1c8e2827e31 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Build system: Bump versionsFriedemann Kleint2022-10-253-6/+6
| | | | | | | | | | | | State CMake 3.18+ and Python >= 3.7 Task-number: PYSIDE-2091 Pick-to: 6.4 Change-Id: Iad906a48bf4378ceeeebe5a55aeaa3f27ea0a61f Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Add the modbus client exampleFriedemann Kleint2022-10-1816-0/+5528
| | | | | | Change-Id: Idf8e6a44333b64d4a50170350a95b5384500e304 Task-number: PYSIDE-841 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Add the can bus exampleFriedemann Kleint2022-10-1727-0/+6086
| | | | | | Task-number: PYSIDE-841 Change-Id: I006440da862305348f782d8dcacc824395734bb5 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* remove mentions to Python 3.6Cristián Maureira-Fredes2022-10-171-1/+1
| | | | | | | | | PySide 6.4.0 is the first release that only supports Python 3.7+ Task-number: PYSIDE-2085 Change-Id: I92016cc438a9272eba3f0d379bb0c4b87bee52f5 Pick-to: 6.4 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* A networkx graph viewer exampleSacha Schutz2022-10-145-0/+360
| | | | | | | | | | Display a networkx graph into a QGraphicsView. The user can move nodes and change the graph's layout with nodes positions animation. Pick-to: 6.4 Task-number: PYSIDE-841 Change-Id: I58bd6585f93caaf678b9961adae00c099c974d29 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Add a context manager for QOpenGLVertexArrayObject.BinderFriedemann Kleint2022-10-142-25/+22
| | | | | | | | | | [ChangeLog][PySide6] A context manager for QOpenGLVertexArrayObject.Binder has been added. Pick-to: 6.4 Change-Id: Ic839ed87f17f99c33b88d7fc5a0dd4842a4c7560 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Tabbed Browser example: Fix startup flicker on WindowsFriedemann Kleint2022-10-131-1/+2
| | | | | | | | | Ensure the browser tabs are added before show(), avoiding the flicker of RHI switching. Pick-to: 6.4 6.2 Change-Id: I0842c42f8b7ab3bc7d0509bfeead9d1109f7124e Reviewed-by: Christian Tismer <tismer@stackless.com>
* examples: Fix docstr in async/eratosthenes re:tickAdrian Herrmann2022-10-061-11/+6
| | | | | | | | | | | In the "eratosthenes" async example, the tick is not actually coordinated between subroutines as claimed, update docstring to reflect this (and streamline code slightly in the process). Task-number: PYSIDE-769 Pick-to: 6.3 Change-Id: I5f040b558851481355650c08ab15ac10e5b1a88c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* examples: fix errors on sql and chartsShyamnath Premnadh2022-10-062-6/+6
| | | | | | | | | | | - examples/sql/books/bookdelegate.py - removed drawFocus(). No such attribute exists for the base classes. - examples/charts/lineandbar/lineandbar.py - setAxisX() and setAxisY() are deprecated. The example is now aligned more with the C++ example. Pick-to: 6.3 Change-Id: Iddf4f27db06ee574e1e849c753577c43224a9dc7 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix the editabletreemodel exampleFriedemann Kleint2022-10-061-7/+2
| | | | | | | | | Remove the duplicated signals and fix the signal emission. Task-number: PYSIDE-2070 Pick-to: 6.3 6.2 Change-Id: I6020d0d3b971de699ace9da5332a5e173c1fba8f Reviewed-by: Christian Tismer <tismer@stackless.com>
* examples: Add async examplesAdrian Herrmann2022-10-0610-0/+410
| | | | | | | | | | Add two examples that demonstrate how to use Qt together with an async package (Trio). Task-number: PYSIDE-769 Pick-to: 6.3 Change-Id: I1514eecc0a2eb65c6bb493857d901cf8817b7b52 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* examples: adapt widgets examplesCristián Maureira-Fredes2022-10-068-67/+145
| | | | | | | | | Fixing issues related to deprecated methods, Enums, and more. Pick-to: 6.3 Change-Id: I07be29601f0ad257f5fcfb0a5bc4891cb7f9648c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Add missing file mainwindow.ui of the serialport/terminal exampleFriedemann Kleint2022-09-301-0/+162
| | | | | | | | | Amends ea6a6abd7266900d9b0ceae1b09ce039891ae9a8. Pick-to: 6.3 6.2 Task-number: PYSIDE-841 Change-Id: I23f5c32ef1e9f07b6cc20d44cbb37e12850d4522 Reviewed-by: Christian Tismer <tismer@stackless.com>