diff options
| author | Soheil Armin <soheil.armin@qt.io> | 2024-02-26 19:26:06 +0200 |
|---|---|---|
| committer | Soheil Armin <soheil.armin@qt.io> | 2024-02-27 05:12:16 +0200 |
| commit | 577da07d9ae068d50435ba40ca0e72fa694e2f95 (patch) | |
| tree | 56582edbecf7323650320ceb9d8abf81cbb0f7cd /src/quick/platform/android/qandroidquickviewembedding.cpp | |
| parent | deb80fcf2f45794b8cacb25b643ea7f00a152d5c (diff) | |
Android: Change resizeMode of the root object of QQuickView
The root object of the QQuickView that the QtQuickView instantites,
should follow the size of the QtQuickView as
the QtQuickView size is being externally controlled by the user
or the hosting layout.
Pick-to: 6.7
Change-Id: I7d8c046c8ba094a8ba27d78fcc191dfa501e3862
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Diffstat (limited to 'src/quick/platform/android/qandroidquickviewembedding.cpp')
| -rw-r--r-- | src/quick/platform/android/qandroidquickviewembedding.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/platform/android/qandroidquickviewembedding.cpp b/src/quick/platform/android/qandroidquickviewembedding.cpp index 9e3de6957e..49fb04f7ad 100644 --- a/src/quick/platform/android/qandroidquickviewembedding.cpp +++ b/src/quick/platform/android/qandroidquickviewembedding.cpp @@ -56,7 +56,7 @@ namespace QtAndroidQuickViewEmbedding [qtViewObject](QQuickView::Status status) { qtViewObject.callMethod<void>("handleStatusChange", status); }); - + view->setResizeMode(QQuickView::SizeRootObjectToView); view->setColor(QColor(Qt::transparent)); view->setWidth(width); view->setHeight(height); |
