aboutsummaryrefslogtreecommitdiffstats
path: root/examples/webenginewidgets/simplebrowser/simplebrowser.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-07-29 15:15:09 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-07-29 16:43:56 +0200
commit1d049c1d55d3ef107bb8625532fc4e33fe3028d3 (patch)
tree3a35d82c1aff061c040e1d75995446f8f9f2b5f0 /examples/webenginewidgets/simplebrowser/simplebrowser.py
parentc06b82ac7b1ff09edbb7515ae057bdf2e51ffb2d (diff)
PySide6: Fix simplebrowser to work
Remove deprecated API. Change-Id: I7947554bfc582585f93973f25678b570f80c9f6a Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'examples/webenginewidgets/simplebrowser/simplebrowser.py')
-rw-r--r--examples/webenginewidgets/simplebrowser/simplebrowser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/webenginewidgets/simplebrowser/simplebrowser.py b/examples/webenginewidgets/simplebrowser/simplebrowser.py
index 021d5311e..e3f45356b 100644
--- a/examples/webenginewidgets/simplebrowser/simplebrowser.py
+++ b/examples/webenginewidgets/simplebrowser/simplebrowser.py
@@ -98,7 +98,7 @@ class MainWindow(QMainWindow):
if __name__ == '__main__':
app = QApplication(sys.argv)
mainWin = MainWindow()
- availableGeometry = app.desktop().availableGeometry(mainWin)
+ availableGeometry = mainWin.screen().availableGeometry()
mainWin.resize(availableGeometry.width() * 2 / 3, availableGeometry.height() * 2 / 3)
mainWin.show()
sys.exit(app.exec())