Init Qt Creator Files

This commit is contained in:
Daniel Stoppek
2024-10-23 15:03:43 +02:00
parent f5b33179d8
commit 8ac3117495
17 changed files with 653 additions and 0 deletions

16
main.py Normal file
View File

@@ -0,0 +1,16 @@
# This Python file uses the following encoding: utf-8
import sys
from pathlib import Path
from PySide6.QtGui import QGuiApplication
from PySide6.QtQml import QQmlApplicationEngine
if __name__ == "__main__":
app = QGuiApplication(sys.argv)
engine = QQmlApplicationEngine()
qml_file = Path(__file__).resolve().parent / "main.qml"
engine.load(qml_file)
if not engine.rootObjects():
sys.exit(-1)
sys.exit(app.exec())