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-06 12:42:27 +0200 |
commit | 8b4a74f26efd42da77276e2b767c3bb656f9fcd1 (patch) | |
tree | 3ce8ba1aeb804ef4442017748583ba8af11a4991 /examples/declarative/extending/chapter5-listproperties/listproperties.py | |
parent | eb8db99ab4207a38a961de459259f75062d1c364 (diff) |
examples: use exec() instead of exec_()
Change-Id: I07dd4339093be8fcc80e63a2ff0448e998356203
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit 57e681930f6b4c7c311fc70a66317ef64dee4cb1)
Diffstat (limited to 'examples/declarative/extending/chapter5-listproperties/listproperties.py')
-rw-r--r-- | examples/declarative/extending/chapter5-listproperties/listproperties.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |