diff options
author | Simo Fält <simo.falt@qt.io> | 2022-09-01 08:15:19 +0300 |
---|---|---|
committer | Simo Fält <simo.falt@qt.io> | 2022-09-01 08:15:19 +0300 |
commit | 789fc5d65d2e0ba95cda25e63f74dd4def87a775 (patch) | |
tree | 28019fcbb368b64fad68d930a2587ee22092d71b /examples/opengl/hellogl2/hellogl2.py | |
parent | 54a301d83910a760ff7f7aa5bea1e3c3d7226bc8 (diff) | |
parent | 0ad10f40c9cdbe6d054b6e7ffd60d14846a1d4aa (diff) |
Merge remote-tracking branch 'origin/6.3' into wip/6.3_pypy
Change-Id: I049daa7bbac16b4cf680dc60d65553277064b231
Diffstat (limited to 'examples/opengl/hellogl2/hellogl2.py')
-rw-r--r-- | examples/opengl/hellogl2/hellogl2.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/opengl/hellogl2/hellogl2.py b/examples/opengl/hellogl2/hellogl2.py index 733cc25ee..3e1c5ac3d 100644 --- a/examples/opengl/hellogl2/hellogl2.py +++ b/examples/opengl/hellogl2/hellogl2.py @@ -46,7 +46,8 @@ from argparse import ArgumentParser, RawTextHelpFormatter import ctypes import math import sys -from PySide6.QtCore import QCoreApplication, Signal, SIGNAL, SLOT, Qt, QSize, QPointF +from PySide6.QtCore import (QCoreApplication, Signal, Slot, + Qt, QSize, QPointF) from PySide6.QtGui import (QVector3D, QOpenGLFunctions, QMatrix4x4, QOpenGLContext, QSurfaceFormat, QVector3DList) from PySide6.QtOpenGL import (QOpenGLVertexArrayObject, QOpenGLBuffer, @@ -266,6 +267,7 @@ class GLWidget(QOpenGLWidget, QOpenGLFunctions): angle -= 360 * 16 return angle + @Slot(int) def set_xrotation(self, angle): angle = self.normalize_angle(angle) if angle != self._x_rot: @@ -273,6 +275,7 @@ class GLWidget(QOpenGLWidget, QOpenGLFunctions): self.x_rotation_changed.emit(angle) self.update() + @Slot(int) def set_yrotation(self, angle): angle = self.normalize_angle(angle) if angle != self._y_rot: @@ -280,6 +283,7 @@ class GLWidget(QOpenGLWidget, QOpenGLFunctions): self.y_rotation_changed.emit(angle) self.update() + @Slot(int) def set_zrotation(self, angle): angle = self.normalize_angle(angle) if angle != self._z_rot: @@ -287,6 +291,7 @@ class GLWidget(QOpenGLWidget, QOpenGLFunctions): self.z_rotation_changed.emit(angle) self.update() + @Slot() def cleanup(self): self.makeCurrent() self._logo_vbo.destroy() |