Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-107923

Wrong height of the window on Android

    XMLWordPrintable

Details

    • Android
    • 89725106e (6.4), e3e40c44d (6.4.2), ed57b521d (tqtc/lts-5.15), 48ebd4e31 (dev), 9b8777d49 (6.4), 50185ff90 (tqtc/lts-6.2), 652652f3c (6.5), ecaa0f1ac (tqtc/lts-5.15)
    • 2023wk02FOQtforAndroid, 2022wk44FOQtforAndroid, 2022wk46FOQtforAndroid, 2022wk48FOQtforAndroid, 2022wk50FOQtforAndroid, 2022wk52FOQtforAndroid, 2023wk04FOQtforAndroid, 2023wk06FOQtforAndroid

    Description

      It seems that the height of the main window calculation does not take into account the navigation bar.
      The following code, gives the result visible in the attachment.

      import QtQuick
      Window {
          visible: true
          title: qsTr("Hello World")
      
          Rectangle {
              anchors.fill: parent
              border.color: "red"
              border.width: 2
              color: "transparent"
          }
      
          Rectangle {
              anchors.fill: parent
              anchors.margins: 24
              border.color: "blue"
              border.width: 1
              color: "transparent"
          }
      }
      

      Please notice the red border going out of the screen.

      Attachments

        1. 2022-11-24 13-02-28.mkv
          6.30 MB
        2. emuPixel3aXLAnd10-QTBUG107923-Qt515-patch455920ver6-descriptionQML-quentin-rotation.mp4
          950 kB
        3. GooglePixel4_Android9_Qt5.15.12.png
          GooglePixel4_Android9_Qt5.15.12.png
          297 kB
        4. HuaweiPSmart2019_Android9_Qt5.15.12.jpg
          HuaweiPSmart2019_Android9_Qt5.15.12.jpg
          92 kB
        5. huhop30proand10-QTBUG107923-Qt515-patch455920ver6-descriptionQML-quentin-landscape270deg.png
          huhop30proand10-QTBUG107923-Qt515-patch455920ver6-descriptionQML-quentin-landscape270deg.png
          27 kB
        6. huhop30proand10-QTBUG107923-Qt515-patch455920ver6-descriptionQML-quentin-portrait1.png
          huhop30proand10-QTBUG107923-Qt515-patch455920ver6-descriptionQML-quentin-portrait1.png
          28 kB
        7. image-2022-10-25-11-43-38-724.png
          image-2022-10-25-11-43-38-724.png
          54 kB
        8. image-2022-11-15-14-17-40-996.png
          image-2022-11-15-14-17-40-996.png
          14 kB
        9. image-2022-11-15-14-17-45-475.png
          image-2022-11-15-14-17-45-475.png
          19 kB
        10. image-2022-11-15-14-17-51-522.png
          image-2022-11-15-14-17-51-522.png
          27 kB
        11. image-2022-11-15-14-17-56-118.png
          image-2022-11-15-14-17-56-118.png
          21 kB
        12. image-2022-11-15-14-19-39-214.png
          image-2022-11-15-14-19-39-214.png
          13 kB
        13. image-2022-11-15-14-19-44-946.png
          image-2022-11-15-14-19-44-946.png
          16 kB
        14. image-2022-11-23-15-58-13-311.png
          image-2022-11-23-15-58-13-311.png
          20 kB
        15. image-2022-11-23-15-58-28-823.png
          image-2022-11-23-15-58-28-823.png
          19 kB
        16. image-2022-12-08-10-32-11-855.png
          image-2022-12-08-10-32-11-855.png
          40 kB
        17. image-2023-01-09-13-14-07-607.png
          image-2023-01-09-13-14-07-607.png
          66 kB
        18. iphone_XR_iOS_5_15_12.png
          iphone_XR_iOS_5_15_12.png
          571 kB
        19. LG V60 Android 12 Qt5.15.2.png
          LG V60 Android 12 Qt5.15.2.png
          204 kB
        20. LG V60 Android 12 Qt6.4.0.png
          LG V60 Android 12 Qt6.4.0.png
          175 kB
        21. LG V60 Android 12 Qt6.4.1.png
          LG V60 Android 12 Qt6.4.1.png
          211 kB
        22. LG V60 Android 12 Qt6.4.2.png
          LG V60 Android 12 Qt6.4.2.png
          214 kB
        23. LG V60 Android 12 Qt6.5.0.png
          LG V60 Android 12 Qt6.5.0.png
          213 kB
        24. LG V60 Android 12 Qt6.6.0.png
          LG V60 Android 12 Qt6.6.0.png
          213 kB
        25. LGv60-Qt5152.png
          LGv60-Qt5152.png
          179 kB
        26. LGv60-Qt640.png
          LGv60-Qt640.png
          157 kB
        27. LGv60-Qt641.png
          LGv60-Qt641.png
          190 kB
        28. LGv60-Qt642.png
          LGv60-Qt642.png
          194 kB
        29. LGv60-Qt650beta1.png
          LGv60-Qt650beta1.png
          193 kB
        30. LGv60-Qt660dev.png
          LGv60-Qt660dev.png
          193 kB
        31. macOS_5_15_12.png
          macOS_5_15_12.png
          494 kB
        32. motorola_a9_5_15_12.png
          motorola_a9_5_15_12.png
          276 kB
        33. motorola_a9_5_15_7.png
          motorola_a9_5_15_7.png
          282 kB
        34. nophand12-QTBUG107923-Qt51511vs515patchv4.png
          nophand12-QTBUG107923-Qt51511vs515patchv4.png
          158 kB
        35. pixel_6a_a13_5_15_12.png
          pixel_6a_a13_5_15_12.png
          292 kB
        36. qqc2materialstyle.tgz
          2 kB
        37. qt51512+patch-qtws19.png
          qt51512+patch-qtws19.png
          305 kB
        38. qt51512+patch-qtws19-gestures.png
          qt51512+patch-qtws19-gestures.png
          302 kB
        39. qt5159+patch-qtws19.png
          qt5159+patch-qtws19.png
          109 kB
        40. qt5159qtws19.png
          qt5159qtws19.png
          312 kB
        41. qt-6.4-android-fullscreen-issue.png
          qt-6.4-android-fullscreen-issue.png
          334 kB
        42. QTBUG-96877-patch1-and-QTBUG-107923-patch5-1p7tAndr11.mp4
          2.31 MB
        43. QTBUG-96877-patch1-and-QTBUG-107923-patch5-HP40LiteAndr10.png
          QTBUG-96877-patch1-and-QTBUG-107923-patch5-HP40LiteAndr10.png
          37 kB
        44. ResizingTest.zip
          17 kB
        45. Screenshot_20230118-075840.png
          Screenshot_20230118-075840.png
          199 kB
        46. Screenshot_20230118-080015[1].png
          Screenshot_20230118-080015[1].png
          194 kB
        47. Screenshot 2023-01-26 at 13.59.16.png
          Screenshot 2023-01-26 at 13.59.16.png
          193 kB
        48. Screenshot 2023-01-26 at 13.59.52.png
          Screenshot 2023-01-26 at 13.59.52.png
          242 kB
        49. xiaomi_mi_lite_a10_5_15_12.png
          xiaomi_mi_lite_a10_5_15_12.png
          295 kB
        50. ZebraTC21_Android10_Qt5.15.12.png
          ZebraTC21_Android10_Qt5.15.12.png
          31 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              rampe Rami Potinkara
              piotrmi Piotr Mikolajczyk
              Votes:
              11 Vote for this issue
              Watchers:
              22 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes