diff options
| author | Assam Boudjelthia <[email protected]> | 2020-02-24 09:50:51 +0200 |
|---|---|---|
| committer | Assam Boudjelthia <[email protected]> | 2020-03-03 12:39:56 +0200 |
| commit | 873eba3f8bdd1151762fae2dfcee733ebdd7c0be (patch) | |
| tree | d194805258ef9f1d8ac8dba35ff3f71fee9ed291 /examples/network/http/main.cpp | |
| parent | 275401f580abe19c1519e3d05acec20c68fd9fa6 (diff) | |
Examples: use QDialog::showMaximaized() for Android
Examples that use QDialog as main window should be maximized on Android
to avoid a black view on most of the screen.
Task-number: QTBUG-80717
Change-Id: I933c1a01d95d53da009c190c37fa32f27be5af5e
Reviewed-by: BogDan Vatra <[email protected]>
Diffstat (limited to 'examples/network/http/main.cpp')
| -rw-r--r-- | examples/network/http/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/network/http/main.cpp b/examples/network/http/main.cpp index 1339f2f6934..6c86933fd64 100644 --- a/examples/network/http/main.cpp +++ b/examples/network/http/main.cpp @@ -81,7 +81,11 @@ int main(int argc, char *argv[]) const QRect availableSize = httpWin.screen()->availableGeometry(); httpWin.resize(availableSize.width() / 5, availableSize.height() / 5); httpWin.move((availableSize.width() - httpWin.width()) / 2, (availableSize.height() - httpWin.height()) / 2); - +#ifdef Q_OS_ANDROID + httpWin.showMaximized(); +#else httpWin.show(); +#endif + return app.exec(); } |
