diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-07-14 10:33:47 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-07-14 10:08:14 +0000 |
| commit | d65f3ab8ce9abc8ed99b699efca9bda4f0a18006 (patch) | |
| tree | 581005caafce85a60740ee35162af4930f639d78 /examples/opengl/hellogl2.py | |
| parent | 31d2303a836177cc3e50a85e5190096be1232447 (diff) | |
Add QtOpenGLWidgets
QOpenGLWidget has been moved from QtWidgets into
a separate library.
Fix the examples and remove obsolete examples using deceased
QGLWidget.
Task-number: PYSIDE-1339
Task-number: PYSIDE-904
Change-Id: Ib291d49c22ee6a32d7c03b6ff4980e87c8a09ecb
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'examples/opengl/hellogl2.py')
| -rw-r--r-- | examples/opengl/hellogl2.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/examples/opengl/hellogl2.py b/examples/opengl/hellogl2.py index ad3562f0b..b12a7b275 100644 --- a/examples/opengl/hellogl2.py +++ b/examples/opengl/hellogl2.py @@ -47,10 +47,14 @@ import math import numpy import ctypes from PySide2.QtCore import QCoreApplication, Signal, SIGNAL, SLOT, Qt, QSize, QPoint -from PySide2.QtGui import (QVector3D, QOpenGLFunctions, QOpenGLVertexArrayObject, QOpenGLBuffer, - QOpenGLShaderProgram, QMatrix4x4, QOpenGLShader, QOpenGLContext, QSurfaceFormat) -from PySide2.QtWidgets import (QApplication, QWidget, QMessageBox, QHBoxLayout, QSlider, - QOpenGLWidget) +from PySide2.QtGui import (QVector3D, QOpenGLFunctions, + QMatrix4x4, QOpenGLContext, QSurfaceFormat) +from PySide2.QtOpenGL import (QOpenGLVertexArrayObject, QOpenGLBuffer, + QOpenGLShaderProgram, QOpenGLShader) +from PySide2.QtWidgets import (QApplication, QWidget, QMessageBox, QHBoxLayout, + QSlider) +from PySide2.QtOpenGLWidgets import QOpenGLWidget + from shiboken2 import VoidPtr try: |
