aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/extending
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/extending')
-rw-r--r--examples/declarative/extending/chapter1-basics/basics.py2
-rw-r--r--examples/declarative/extending/chapter2-methods/methods.py2
-rw-r--r--examples/declarative/extending/chapter3-bindings/bindings.py2
-rw-r--r--examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py2
-rw-r--r--examples/declarative/extending/chapter5-listproperties/listproperties.py2
5 files changed, 5 insertions, 5 deletions
diff --git a/examples/declarative/extending/chapter1-basics/basics.py b/examples/declarative/extending/chapter1-basics/basics.py
index db508d297..f1492d959 100644
--- a/examples/declarative/extending/chapter1-basics/basics.py
+++ b/examples/declarative/extending/chapter1-basics/basics.py
@@ -95,7 +95,7 @@ if __name__ == '__main__':
if view.status() == QQuickView.Error:
sys.exit(-1)
view.show()
- res = app.exec_()
+ res = app.exec()
# Deleting the view before it goes out of scope is required to make sure all child QML instances
# are destroyed in the correct order.
del view
diff --git a/examples/declarative/extending/chapter2-methods/methods.py b/examples/declarative/extending/chapter2-methods/methods.py
index c0fd0050a..c9e7be8f3 100644
--- a/examples/declarative/extending/chapter2-methods/methods.py
+++ b/examples/declarative/extending/chapter2-methods/methods.py
@@ -102,7 +102,7 @@ if __name__ == '__main__':
if view.status() == QQuickView.Error:
sys.exit(-1)
view.show()
- res = app.exec_()
+ res = app.exec()
# Deleting the view before it goes out of scope is required to make sure all child QML instances
# are destroyed in the correct order.
del view
diff --git a/examples/declarative/extending/chapter3-bindings/bindings.py b/examples/declarative/extending/chapter3-bindings/bindings.py
index 3bb70dbab..cacac78da 100644
--- a/examples/declarative/extending/chapter3-bindings/bindings.py
+++ b/examples/declarative/extending/chapter3-bindings/bindings.py
@@ -106,7 +106,7 @@ if __name__ == '__main__':
if view.status() == QQuickView.Error:
sys.exit(-1)
view.show()
- res = app.exec_()
+ res = app.exec()
# Deleting the view before it goes out of scope is required to make sure all child QML instances
# are destroyed in the correct order.
del view
diff --git a/examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py b/examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py
index 0cd8feb61..a4a74fef4 100644
--- a/examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py
+++ b/examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py
@@ -109,7 +109,7 @@ if __name__ == '__main__':
if view.status() == QQuickView.Error:
sys.exit(-1)
view.show()
- res = app.exec_()
+ res = app.exec()
# Deleting the view before it goes out of scope is required to make sure all child QML instances
# are destroyed in the correct order.
del view
diff --git a/examples/declarative/extending/chapter5-listproperties/listproperties.py b/examples/declarative/extending/chapter5-listproperties/listproperties.py
index 4f24a3a87..eeaba0858 100644
--- a/examples/declarative/extending/chapter5-listproperties/listproperties.py
+++ b/examples/declarative/extending/chapter5-listproperties/listproperties.py
@@ -123,7 +123,7 @@ if __name__ == '__main__':
if view.status() == QQuickView.Error:
sys.exit(-1)
view.show()
- res = app.exec_()
+ res = app.exec()
# Deleting the view before it goes out of scope is required to make sure all child QML instances
# are destroyed in the correct order.
del view