window
Qt-based Cube Renderer using PicoGL’s GLBase
This example demonstrates how to create a simple cube renderer using Qt’s QOpenGLWidget through PicoGL’s GLBase class. It’s designed for legacy displays and systems that prefer Qt over GLUT.
Features: - Legacy OpenGL rendering (compatible with older systems) - Mouse controls for rotation and zoom - Colorful cube with vertex colors - Qt-based window management - Cross-platform compatibility
Requirements: - PySide6 (Qt6) - PyOpenGL - NumPy - PicoGL
- Usage:
python examples/qt_cube.py
Classes
Main window for the Qt Object renderer |
Module Contents
- class window.LegacyQtObjectWindow(parent, gl_mode: picogl.mode.GLMode = GLMode.LEGACY)[source]
Bases:
PySide6.QtWidgets.QMainWindowMain window for the Qt Object renderer