diff options
Diffstat (limited to 'examples/quick/scenegraph/openglunderqml/main.py')
-rw-r--r-- | examples/quick/scenegraph/openglunderqml/main.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/quick/scenegraph/openglunderqml/main.py b/examples/quick/scenegraph/openglunderqml/main.py index e452f6907..a7ff6a223 100644 --- a/examples/quick/scenegraph/openglunderqml/main.py +++ b/examples/quick/scenegraph/openglunderqml/main.py @@ -14,14 +14,14 @@ from squircle import Squircle # noqa: F401 if __name__ == "__main__": app = QGuiApplication(sys.argv) - QQuickWindow.setGraphicsApi(QSGRendererInterface.OpenGL) + QQuickWindow.setGraphicsApi(QSGRendererInterface.GraphicsApi.OpenGL) view = QQuickView() - view.setResizeMode(QQuickView.SizeRootObjectToView) + view.setResizeMode(QQuickView.ResizeMode.SizeRootObjectToView) qml_file = Path(__file__).parent / "main.qml" view.setSource(QUrl.fromLocalFile(qml_file)) - if view.status() == QQuickView.Error: + if view.status() == QQuickView.Status.Error: sys.exit(-1) view.show() |