aboutsummaryrefslogtreecommitdiffstats
path: root/examples/opengl/hellogl2/hellogl2.py
Commit message (Collapse)AuthorAgeFilesLines
* Examples: Split the hellogl2 exampleFriedemann Kleint2023-09-191-439/+0
| | | | | | | | | | | | | | | | | | 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>
* examples: remove unused importsCristián Maureira-Fredes2023-04-051-2/+1
| | | | | | Change-Id: I88a7bb2fe91abcfdef6e6014b088d08c4e613893 Pick-to: 6.5 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Add a context manager for QOpenGLVertexArrayObject.BinderFriedemann Kleint2022-10-141-22/+19
| | | | | | | | | | [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>
* Examples: Add some missing slot decoratorsFriedemann Kleint2022-08-241-1/+6
| | | | | | | | | | As unearthed by the warnings added by the logging category. As a drive-by, fix some imports. Pick-to: 6.3 6.2 Task-number: PYSIDE-2033 Change-Id: I3812c705b60eb7be744c3532fcfb0e4024763885 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Use SPDX license identifiersLucie Gérard2022-05-271-41/+3
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: I065150015bdb84a3096b5b39c061cf0a20ab637d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* examples: replace http by httpsCristián Maureira-Fredes2022-04-011-1/+1
| | | | | | Pick-to: 6.2 Change-Id: Ib53667e03a2dea2afea73a344d5749d37d59c52b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Use Opaque container for OpenGL in the hellogl2 exampleFriedemann Kleint2022-01-271-22/+9
| | | | | | Task-number: PYSIDE-1605 Change-Id: Ieefae548195c19ba9968b48c57d48a8255ed9633 Reviewed-by: Christian Tismer <tismer@stackless.com>
* examples: add screenshots to more modulesCristian Maureira-Fredes2021-06-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Adding screenshots and small documentation file to the modules - corelib - datavisualization - external - opengl - quick - sql - uitools - webchannel - webenginewidgets - some widgets - xml Renaming the widgets gallery due to name conflict with the quick controls gallery, and fixing two typos from contextinfo.py and hellogl2.py. Task-number: PYSIDE-841 Pick-to: 6.1 Change-Id: I2705e5d605fa738da0dca906cf6acb4b9d5d3dcd Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* examples: use exec() instead of exec_()Cristian Maureira-Fredes2021-05-051-2/+2
| | | | | Change-Id: I07dd4339093be8fcc80e63a2ff0448e998356203 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Examples: Fix some space-related flake warningsFriedemann Kleint2021-04-291-2/+4
| | | | | | Task-number: PYSIDE-1112 Change-Id: Ib8991199e4822673d6a25cba0023dbe3b03f5938 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Examples: Use new form of super()Friedemann Kleint2021-04-281-1/+1
| | | | | | Task-number: PYSIDE-1112 Change-Id: Ifcb4da974bdcad7af536404fffdbffc585d3d167 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Brush up the hellogl2 exampleFriedemann Kleint2021-03-251-127/+137
| | | | | | | | | | | - Use snake case - Use Argument parser - Fix the transparent option to work - Port away from string-based signal/slot connections Task-number: PYSIDE-1112 Change-Id: I104363b35db59fc9e4626d85ebae886c73abfd8a Reviewed-by: Christian Tismer <tismer@stackless.com>
* Port examples away from deprecated QMouseEvent::pos()Friedemann Kleint2021-03-191-6/+7
| | | | | | | | | | As a drive by, fix the left-over QtCharts callout example to work after 227020b118fa38ada1d8bd579593dae61f6e3881. Pick-to: 6.0 Task-number: PYSIDE-1122 Change-Id: I945b57950014e882d4efd3cb0cab47262ad108b6 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* examples: directory structureCristian Maureira-Fredes2021-02-091-0/+476
When generating the gallery automatically, the structure of the examples was not the same for all the modules. This reorganization was made under the following assumption: An example requires: - its own directory, - a '.pyproject' file, - one or more '.py' files, - extra files (likes images, .rc, .ui, etc) Even for cases when subdirectories are made to depict categories, like 'widgets/state-machine/...', one directory is required per example. There should not be '.pyproject' files for categories, except for the general 'examples.pyproject' to open all of them. Task-number: PYSIDE-1490 Pick-to: 6.0 Change-Id: Ie690773c816a248016dbebaad90fbb1d1c2aeea5 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>