diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-09-12 14:45:19 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-09-19 13:20:41 +0200 |
| commit | eec936657938e1c19ab70c562fc5eff5e1cec4b9 (patch) | |
| tree | c999adab353b7167560858ba92807e6bf0045fae /examples/opengl/hellogl2/main.py | |
| parent | fb2ecf5e8577353c2317c7e103d11c52d473d024 (diff) | |
Add multiwindow functionality from the C++ example
Pick-to: 6.6
Task-number: PYSIDE-2460
Task-number: PYSIDE-2206
Change-Id: I6644e098c15885271bd4bc1188ae44e6c984b369
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'examples/opengl/hellogl2/main.py')
| -rw-r--r-- | examples/opengl/hellogl2/main.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/opengl/hellogl2/main.py b/examples/opengl/hellogl2/main.py index ea35c0077..c7eb78a82 100644 --- a/examples/opengl/hellogl2/main.py +++ b/examples/opengl/hellogl2/main.py @@ -12,7 +12,7 @@ from PySide6.QtWidgets import (QApplication, QMessageBox) try: - from window import Window + from mainwindow import MainWindow from glwidget import GLWidget except ImportError: app = QApplication(sys.argv) @@ -47,12 +47,11 @@ if __name__ == '__main__': GLWidget.set_transparent(options.transparent) - main_window = Window() + main_window = MainWindow() if options.transparent: main_window.setAttribute(Qt.WA_TranslucentBackground) main_window.setAttribute(Qt.WA_NoSystemBackground, False) - main_window.resize(main_window.sizeHint()) main_window.show() res = app.exec() |
