diff options
Diffstat (limited to 'examples/graphs/3d/bars/main.py')
| -rw-r--r-- | examples/graphs/3d/bars/main.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/examples/graphs/3d/bars/main.py b/examples/graphs/3d/bars/main.py new file mode 100644 index 000000000..0a75de48d --- /dev/null +++ b/examples/graphs/3d/bars/main.py @@ -0,0 +1,24 @@ +# Copyright (C) 2024 The Qt Company Ltd. +# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause + +import sys +from pathlib import Path + +from PySide6.QtGui import QGuiApplication +from PySide6.QtQuick import QQuickView + + +if __name__ == '__main__': + app = QGuiApplication(sys.argv) + view = QQuickView() + + view.engine().addImportPath(Path(__file__).parent) + view.loadFromModule("Bars", "Main") + view.setTitle("Monthly income / expenses") + view.setResizeMode(QQuickView.SizeRootObjectToView) + view.setColor("black") + view.show() + + ex = app.exec() + del view + sys.exit(ex) |
