aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtQml/bug_1029.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtQml/bug_1029.py')
-rw-r--r--sources/pyside6/tests/QtQml/bug_1029.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtQml/bug_1029.py b/sources/pyside6/tests/QtQml/bug_1029.py
index 23dc8c26e..c46df7736 100644
--- a/sources/pyside6/tests/QtQml/bug_1029.py
+++ b/sources/pyside6/tests/QtQml/bug_1029.py
@@ -41,13 +41,15 @@ from PySide6.QtGui import QGuiApplication
from PySide6.QtQml import qmlRegisterType
from PySide6.QtQuick import QQuickView, QQuickItem
+
def register_qml_types():
class TestClass(QQuickItem):
- def __init__(self, parent = None):
+ def __init__(self, parent=None):
QQuickItem.__init__(self, parent)
qmlRegisterType(TestClass, "UserTypes", 1, 0, "TestClass")
+
def main():
app = QGuiApplication([])
@@ -61,5 +63,6 @@ def main():
url = QUrl(__file__.replace(".py", ".qml"))
view.setSource(url)
+
if __name__ == "__main__":
main()