aboutsummaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
...
* doc: remove double white spaceCristián Maureira-Fredes2023-11-213-6/+6
| | | | | | Pick-to: 6.6 Change-Id: I68b835bb5fa00d35fe5406deee2acc83c7bac7cb Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* Scene Graph Painted Item Example: Prototypically enable QML debuggingFriedemann Kleint2023-11-201-1/+9
| | | | | | | | Task-number: PYSIDE-2206 Pick-to: 6.6 6.5 Change-Id: I8112a1bd5c6020373d11a70a0043ccd1273735de Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Update the clock exampleFriedemann Kleint2023-11-201-32/+48
| | | | | | | | | | | Port qtbase/619ec1a6406a8be7bfa9d96b9e693e7a3323d8dc to our QWindow example. Pick-to: 6.6 6.5 Task-number: QTBUG-118871 Task-number: PYSIDE-2206 Change-Id: Ib8ab8bf6f415b31d1493b3ea21f2c93aca4ed13d Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* Add QtQuick3D Procedural texture exampleCristián Maureira-Fredes2023-11-158-0/+350
| | | | | | | | | Pick-to: 6.6 Task-number: PYSIDE-841 Co-authored-by: Dennis Oberst <dennis.oberst@qt.io> Change-Id: I191965e81aa93b812b128ad2045da1ef13f157b5 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Add rhiwindow exampleFriedemann Kleint2023-11-0215-0/+938
| | | | | | | Pick-to: 6.6 Task-number: QTBUG-113331 Change-Id: I4d775ecaeab5e8692a06d19b9951b139bc3d1051 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* File system explorer example: Improve shortcutsFriedemann Kleint2023-10-251-2/+3
| | | | | | | | Use the standard keys for zoom and the common Ctrl+Q for quit. Pick-to: 6.6 Change-Id: I3659a5a84bc1e46938729710af31c834b8a50ed8 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* Browser examples: Some improvementsFriedemann Kleint2023-10-123-3/+13
| | | | | | | | | | - Output the Render process exit code in hex - Add an option for single process mode for trouble shooting Pick-to: 6.6 Change-Id: Ia9c9f7b7879b8a0b763f8bd74ac57c3d3579c06f Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* async: Remove unneeded signal from exampleAdrian Herrmann2023-10-101-6/+0
| | | | | | | | | Remove the unneeded done_signal from the eratosthenes asyncio example. Pick-to: 6.6 Task-number: PYSIDE-769 Change-Id: I5cc347ebb265e55afa82d37ce07fa2c6378ce133 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Example Revamp: CameraShyamnath Premnadh2023-10-027-9/+1193
| | | | | | | | | | | | | | - Changes as per e3c0c190136a55634451024cfa3ac8024c74caa3 - New UI for Android as per the corresponding Qt example - Add the new permission API functions to request and check for Android runtime permissions - Update .pyproject file Task-number: PYSIDE-1612 Task-number: PYSIDE-2206 Pick-to: 6.6 Change-Id: I8b9c41c6cd12388addb5a8a4049c1126b62e098b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* async: Revamp asyncio examplesAdrian Herrmann2023-10-024-190/+30
| | | | | | | | | | | | | The "minimal" and "eratosthenes" examples for asyncio have now been thoroughly revamped to use QtAsyncio instead of the previous experimental approach. As it so happens, this results in a significantly more streamlined and readable code. Pick-to: 6.6 Task-number: PYSIDE-769 Change-Id: If9eb2213a2a95b359d2ec3e468027c6b1edf3866 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Fix animations of the chart themes exampleFriedemann Kleint2023-09-281-12/+2
| | | | | | | | | | Amends 66f7f1fc866dd19aa5a86164d93a7b9a50e07af6. Pick-to: 6.6 6.5 6.5.3 Task-number: PYSIDE-2425 Change-Id: I5cd225de9ae7fbd666d13892cdd8a78b21c9054e Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Example Revamp: Audiosource exampleShyamnath Premnadh2023-09-251-1/+30
| | | | | | | | | | | | - Changes as per e3c0c190136a55634451024cfa3ac8024c74caa3 - Add the new permission API functions to request and check for Android runtime permissions Task-number: PYSIDE-1612 Task-number: PYSIDE-2206 Pick-to: 6.6 Change-Id: Ie1213872775f1570dff7b9a7102fe3494996b9a9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Add multiwindow functionality from the C++ exampleFriedemann Kleint2023-09-195-13/+110
| | | | | | | | Pick-to: 6.6 Task-number: PYSIDE-2460 Task-number: PYSIDE-2206 Change-Id: I6644e098c15885271bd4bc1188ae44e6c984b369 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Examples: Split the hellogl2 exampleFriedemann Kleint2023-09-196-440/+489
| | | | | | | | | | | | | | | | | | Some small refactoring: shorten lines, use super() and move shader code to constants. Refactor the transparent option handling to be in line with the C++ example. Call the OpenGL cleanup from hideEvent() instead of QOpenGLContext::aboutToBeDestroyed() since the signal is emitted from the destructor and thus has no effect for Python. Pick-to: 6.6 Task-number: PYSIDE-2460 Task-number: PYSIDE-2206 Change-Id: I5d140db6e04baf88d2ac867d809c6cff9eb740b5 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Document viewer example: Adapt to revised API of QPdfPageSelector (6.6)Friedemann Kleint2023-09-131-4/+3
| | | | | | | | | | | Adapt to qtwebengine/8b20e0636a89dc3e6b06d174286ee16aa427887a. Complements 4ed257c5e476ab82b1e66c15574a4ebb016d179e. Task-number: PYSIDE-2206 Task-number: QTBUG-116987 Change-Id: I0092fc5f957fc6d0902cd2386ff47c358ff695d6 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* PySide Examples: Adapt HeartRateGameShyamnath Premnadh2023-09-083-8/+46
| | | | | | | | | | - Adapt to consider requestPermission() and checkPermission() Pick-to: 6.5 Task-number: PYSIDE-2206 Task-number: PYSIDE-1612 Change-Id: Ib4a0beb4db971b356cc6705d3fc8d95ad6b1fa17 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* shiboken6: Replace options related to nb_zero by nb_boolFriedemann Kleint2023-09-062-2/+2
| | | | | | | | | | | | | | nb_zero is Python 2 terminology. Rename the related functions and use new options. [ChangeLog][shiboken6] The command line options --use-operator-bool-as-nb_nonzero and --use-isnull-as-nb_nonzero have been replaced by --use-operator-bool-as-nb-bool and --use-isnull-as-nb-bool, respectivily to match Python 3 terminology. The old options continue to work. Change-Id: I1201f4b15e021c8df96740149c20fa1478c12ae1 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* charts: fix chart theme exampleCristián Maureira-Fredes2023-08-181-20/+2
| | | | | | | | | | | | After the proper implementation of Python Enums, there was some code dealing with the Enum value to set the proper enum name that is obsolete. Pick-to: 6.5 Fixes: PYSIDE-2425 Change-Id: I0ee778d09ac3b51432b6ab03e50e31e1a85bfb69 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* examples: Fix Tetrix line-removing bugXU, KE2023-08-071-1/+1
| | | | | | | | | | | | | | | | | When Tetrix example runs, a full line of blocks will remove itself and any other lines below. The root cause is the code only removes the lowest line as it would be the full line but a full line can be at not only the bottom. And this lead to a continuous full-line-finding and removes the lowest line again and again until the full line is removed. This fix introduced a minor fix by changing the index of traversing through the lines to be moved down. This modification allows removing a line that is not at the bottom and fixes the bug. Fixes: PYSIDE-2412 Pick-to: 6.5 Change-Id: I7b23bc82b9baac720152a1d93e242df29b82f768 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Multimedia screen capture example: Add window captureFriedemann Kleint2023-08-046-53/+171
| | | | | | | | | | Port from qtmultimedia/3edff8e367b9060dd138a2b67cb87d2246a4a3e6. Task-number: PYSIDE-2206 Change-Id: Ia702faf47946a0f656b1546b205dfb442cf2f56a Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* Add the Qt Graphs widgetgallery exampleFriedemann Kleint2023-07-2829-0/+2912
| | | | | | | | | It is a copy of the QtDataVisualization graph gallery example adapted to Qt Graphs. Task-number: PYSIDE-2206 Change-Id: I908312b15324dd030f5610508f13299921fafc26 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* DOM XBEL example: Combine create_actions() into create_menus()Edward Welbourne2023-07-171-21/+10
| | | | | | | | | | | This is to match the C++; the MainWindow doesn't need the QAction instances as member variables, they can perfectly well be simply created and used in the course of hooking them up to menus. Task-number: QTBUG-111228 Pick-to: 6.5 Change-Id: Ic6b936e4b6ccfd57ba22a7c738c36089547cf764 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Port the document viewer exampleFriedemann Kleint2023-07-1359-0/+7259
| | | | | | | Task-number: PYSIDE-2206 Change-Id: Ia01043b4f9510319e5a751ee3bf1520dcec90f20 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Use example icons in MDI exampleFriedemann Kleint2023-07-0710-626/+13
| | | | | | | | Task-number: QTBUG-110428 Task-number: PYSIDE-2206 Change-Id: I594c2ba4e60edeeaf5b8c3beaff4b995b1f74c78 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Add QtGraphsFriedemann Kleint2023-07-072-0/+58
| | | | | | Task-number: QTBUG-111305 Change-Id: I7ac79f59cfd0b85645d30485e86b6ff74bba20bb Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Update jenifer.xbel in DOM bookmarks exampleEdward Welbourne2023-07-051-53/+29
| | | | | | | | | | | Many links were out of date. This brings it into sync with the qtbase version. Task-number: QTBUG-111228 Task-number: PYSIDE-2206 Pick-to: 6.5 Change-Id: Ia3d7e3201c6679d0cde17b2e0d6385cb97be8120 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Remove frank.xbel from DOM bookmarks exampleEdward Welbourne2023-07-052-231/+1
| | | | | | | | | | | It was wildly out of date and we have another sample file, which suffices. Task-number: QTBUG-111228 Task-number: PYSIDE-2206 Pick-to: 6.5 Change-Id: I06ba41c1095fbe7db5e2a80ffadb66f2df6ffbcf Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* pointselectionandmarkers example: Fix literalincludeFriedemann Kleint2023-06-161-6/+6
| | | | | | | | | | | Amends 70d3268fc36656dc7f6168b90fc1e480f049dcca. Pick-to: 6.5 Task-number: PYSIDE-1106 Change-Id: I34b7b345ed4d5c407cd6e3f17c8ee67310c709f8 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* mapviewer example: QML revampShyamnath Premnadh2023-06-1532-31/+61
| | | | | | | | | - Modifications as per c252ae7abf81a07649c05cafc76324179ea8a18e Pick-to: 6.5 Task-number: PYSIDE-2206 Change-Id: I6580e7ae44ee17dd3526059f0963a0f45fcb344f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* scriptableapplication example: Pass script as a single stringFriedemann Kleint2023-06-134-16/+11
| | | | | | | | | Do not split and re-assemble the lines. Task-number: PYSIDE-2206 Pick-to: 6.5 Change-Id: I95c19c142285a65e1b77b30c36c2f3c24560c91f Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* scriptableapplication example: Brush upFriedemann Kleint2023-06-131-19/+28
| | | | | | | | | Use auto and new string literals. Break long lines. Task-number: PYSIDE-2206 Pick-to: 6.5 Change-Id: I5022636de8fe19359a212173fcc93ae08309cc5e Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Port moveblocks exampleAdrian Herrmann2023-06-064-0/+235
| | | | | | | | | Port the Move Blocks example from QStateMachine to PySide. Pick-to: 6.5 Task-number: PYSIDE-2206 Change-Id: I0c5b57aaffe5d8d18b79d9c067399ac655fd3d43 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix picture of traffic light exampleAdrian Herrmann2023-06-061-0/+0
| | | | | | | | | The picture for the statemachine/trafficlight example documentation was broken. Pick-to: 6.5 Change-Id: Id1abd52cfa0f89df3265b0a570793bffdea7ab4a Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Sync removed statemachine examplesAdrian Herrmann2023-05-306-188/+0
| | | | | | | | | | Three qtstatemachine examples have been removed on the C++ side, remove them here as well. Pick-to: 6.5 Task-number: PYSIDE-2206 Change-Id: I18f4a63740804126b5f01473acff45ac53746a44 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Bluetooth/Heartrate game example: Update QML filesFriedemann Kleint2023-05-1915-207/+251
| | | | | | | | | | | | Adapt to recent changes in the example. Pick-to: 6.5 Done-with: Ivan Solovev <ivan.solovev@qt.io> Task-number: PYSIDE-2206 Task-number: QTBUG-111972 Change-Id: I6ca56d05615cfc8ca7327e3af4eee89d591f5dd9 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Lowenergyscanner Example: Fix .pyproject fileFriedemann Kleint2023-05-161-1/+1
| | | | | | | | | - Amends 119988b5c76e98f230248567d6b37e98bc877b5b Pick-to: 6.5 Task-number: PYSIDE-2206 Change-Id: I0711c2db8aeebe0ebb2ad11c9d49e65c4023e822 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Lowenergyscanner Example: update .pyproject fileShyamnath Premnadh2023-05-151-3/+4
| | | | | | | | | - Amends fbcf425088f623d440e4a8b342d7fbab9bf5e6b1 Pick-to: 6.5 Task-number: PYSIDE-2206 Change-Id: Iff0429ef613c9b08acd2cf12e07698c3cec541ee Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* LowEnergyScanner: QML RevampShyamnath Premnadh2023-05-1515-1029/+272
| | | | | | | | | - Modifications as per ca681cd1b3a51d10106a1287a98c5590100feb6a Pick-to: 6.5 Task-number: PYSIDE-2206 Change-Id: Iffcfa58245652fde180f43c560085ae7855ac221 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Heartrate Example: Remove semicolonShyamnath Premnadh2023-05-121-1/+1
| | | | | | | | | - Amends 7b547bd786d3f37e900d24468d33467ac4681b91 Pick-to: 6.5 Change-Id: Iababd07ca264027143c0c28bb85f9877c9dcbc5e Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* widgetbinding example: Move .md file aroundFriedemann Kleint2023-05-122-0/+10
| | | | | | | | | Also add a dummy .pyproject Task-number: PYSIDE-1106 Change-Id: I1a8f4e4dd19b232e59e6e0007e39eb57b4efa0c1 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* QML basic reference examples: Add the tutorial textsFriedemann Kleint2023-05-1111-14/+330
| | | | | | | | | | Take over the texts from C++ with adaptions for Python. Task-number: PYSIDE-2206 Task-number: QTBUG-111033 Pick-to: 6.5 Change-Id: Iedfb9b6cd62bf467f965c94e5dbb707a88456278 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* QML reference examples: Adapt tutorial textsFriedemann Kleint2023-05-105-91/+212
| | | | | | | | | | Take over the texts from C++ with adaptions for Python. Task-number: PYSIDE-2206 Task-number: QTBUG-111033 Pick-to: 6.5 Change-Id: I0e4f1ec39b10bc1440389219604194b2ee001450 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* QML reference examples: Add the add advanced1-Base-projectFriedemann Kleint2023-05-107-0/+199
| | | | | | | | Task-number: PYSIDE-2206 Task-number: QTBUG-111033 Pick-to: 6.5 Change-Id: I8b162f2f5cb6e7099c74e751bcdf95dea5d7d118 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Bluetooth/Heartrate game example: Fix the simulator CLI optionFriedemann Kleint2023-05-096-13/+24
| | | | | | | | | | For some reason, a global variable from the heartrate_global module does not work. Replace it by functions. Pick-to: 6.5 Task-number: PYSIDE-2206 Change-Id: I3ae587a912ab33ab8c88785bed759bcf8bb79261 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Bluetooth/Heartrate game example: Port to use loadFromModule()Friedemann Kleint2023-05-0923-23/+36
| | | | | | | | | | Adapt to recent changes in the example. Pick-to: 6.5 Task-number: PYSIDE-2206 Task-number: QTBUG-111972 Change-Id: I92562ca34c70c57bff583bc620a734098ae0dea3 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Extending QML - Plugins Example: Fix launch instructionsFriedemann Kleint2023-05-031-1/+1
| | | | | | | Pick-to: 6.5 Task-number: PYSIDE-2206 Change-Id: I1b5bf043502cb0add3ad556f0d369a8a418dc8a2 Reviewed-by: Christian Tismer <tismer@stackless.com>
* QML reference examples: Add notify signals and final attribute to propertiesFriedemann Kleint2023-05-0319-82/+157
| | | | | | | | Task-number: PYSIDE-2206 Task-number: QTBUG-111033 Pick-to: 6.5 Change-Id: I0541a3bbb4e5696962802da7f91ab79682700124 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Move the QML reference examples around to match the structure in QtFriedemann Kleint2023-05-0290-0/+0
| | | | | | | | | | | Adapt the tests accordingly. Task-number: PYSIDE-2206 Task-number: QTBUG-111033 Pick-to: 6.5 Change-Id: I332d6467da56b88ecbf9282d23092d8d47b730e0 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Port the QML reference examples to QML module usageFriedemann Kleint2023-05-0257-85/+118
| | | | | | | | | | As a drive-by fix the example origin where applicable. Task-number: PYSIDE-2206 Task-number: QTBUG-111033 Pick-to: 6.5 Change-Id: If3b17435c17310c3f6c196f7653c7025ad359366 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Make Quick window ex. build with pyside6-projectAdrian Herrmann2023-04-284-330/+337
| | | | | | | | | Add window.qrc to window.pyproject, this will make "pyside6-project build" generate the rc_window.py file. Pick-to: 6.5 Change-Id: Ic555297102661ea17889f239f953fbf22b5f643f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>