Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use fully qualified enumerations in more examplesFriedemann Kleint2025-01-066-7/+7
| | | | | | | Pick-to: 6.8 Task-number: PYSIDE-1735 Change-Id: Ic2c478ef363d73f65f366e21529c0429c86539aa Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@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>
* Delete QQmlApplicationEngine on application exitJaime Resano2024-11-252-3/+7
| | | | | | | | | | | | | | 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>
* 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 <cristian.maureira-fredes@qt.io>
* type hints: Fix some typing bugs for mypy (forgiveness)Friedemann Kleint2024-09-1813-26/+26
| | | | | | | | | | | | | 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 <Friedemann.Kleint@qt.io>
* Documentation: Remove example anchorsFriedemann Kleint2024-08-1617-45/+11
| | | | | | | The example_gallery tools also adds anchors, use these instead. Change-Id: I488250fae608cf50804c3edfe0ec12d4aa08194a Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* 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 <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Python-3.10: Allow the new syntax for Python 3.9Christian Tismer2024-06-2049-0/+49
| | | | | | | | Add a future statement to all Python source files. Task-number: PYSIDE-2786 Change-Id: Icd6688c7795a9e16fdcaa829686d57792df27690 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* Documentation: Add QtQml.ListPropertyFriedemann Kleint2024-04-232-9/+10
| | | | | | | Pick-to: 6.7 Task-number: PYSIDE-2698 Change-Id: If9b9af49bb351fcb4e2355277ff84bd0936b5033 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Brush up the usingmodel exampleFriedemann Kleint2024-02-072-32/+28
| | | | | | | | | | | | | | | Although not any more in Qt, it nicely shows the use of roles and delegates in QML. - Use a little data class for Person. - Change the custom role name away from "modelData" which is now a reserved name and caused it to no longer work. - Use a modern decorator. Pick-to: 6.6 6.5 Task-number: PYSIDE-2206 Change-Id: I3a3c1ad96f3a7ee89ada839236b45f461af149c7 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* examples: fix flake8 issues and add exceptionsCristián Maureira-Fredes2024-01-2511-21/+21
| | | | | | | | | | Exception for: - qApp and tr not being directly imported: F821 - *rc and qml modules being imported but not used: F401 Pick-to: 6.6 6.5 6.2 Change-Id: I5e40f3f54c1721ef3dc5d7f1e87d5fd8ec771b8e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Examples: Add Android tagShyamnath Premnadh2024-01-122-0/+4
| | | | | | | | | | | | | | | - Examples that work on Android are tagged Android. - Clicking the tag lists all PySide6 examples supported in Android. - sphinx-tags package added to add blog like tags to examples. [ChangeLog][PySide6] Examples supported on Android are tagged `Android` in documentation Pick-to: 6.6 Task-number: PYSIDE-1612 Change-Id: Ic4ea2c63756d060aeea85b0088da9ae248eda24e Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Examples: Fix a number of flake8 errors (part 1)Adrian Herrmann2023-12-0611-18/+27
| | | | | | | | | First batch, including low-hanging fruit like Alignments, whitespaces, line length, indents, etc. Pick-to: 6.6 Change-Id: I55966876077f7fddfdc82cbe376677af9995f329 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Examples: Fix some flake warningsFriedemann Kleint2023-11-282-0/+2
| | | | | | | | Mostly spacing related. Pick-to: 6.6 Change-Id: If0d5b25e1c60b7b216f970d1e57613f00bd04a37 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* 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>
* 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>
* 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>
* Remove QML import versionsFriedemann Kleint2023-04-281-1/+1
| | | | | | | Task-number: PYSIDE-2206 Pick-to: 6.5 Change-Id: I5388b4fc82fb0d4c2ccb55cbd87fda8b864bc368 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* examples: remove unused importsCristián Maureira-Fredes2023-04-052-2/+2
| | | | | | Change-Id: I88a7bb2fe91abcfdef6e6014b088d08c4e613893 Pick-to: 6.5 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Move examples aroundFriedemann Kleint2022-09-16116-0/+3971
Change the directory structure to closer match that of Qt. Task-number: PYSIDE-841 Change-Id: I87aca346b6654aafe94dd1fb83c184c182ceb2e6 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>