diff options
author | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-04-30 17:49:36 +0200 |
---|---|---|
committer | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-05-05 20:44:49 +0200 |
commit | 57e681930f6b4c7c311fc70a66317ef64dee4cb1 (patch) | |
tree | bb74a1c956c54be258ccb79eb2e13fdb82107301 /examples/declarative/extending | |
parent | 36431b071095b8999347df87621bf23ffcc2ac3d (diff) |
examples: use exec() instead of exec_()
Change-Id: I07dd4339093be8fcc80e63a2ff0448e998356203
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/declarative/extending')
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 |