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

tst_QGridLayout::spacingsAndMargins fails on Android 15

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.10.0 Beta4
    • Widgets: Layout
    • Android
    • eaf36ed87 (6.10), 50018b099 (dev), bc08933ce (6.9), 7c3b16e01 (6.10.0)

      tst_QGridLayout::spacingsAndMargins fails on 6.10 Android 15 emulator because it has edge-to-edge and takes the whole screen geometry by default.

      ********* Start testing of tst_QGridLayout *********
      Config: Using QtTest library 6.11.0, Qt 6.11.0 (arm64-little_endian-lp64 shared (dynamic) debug build; by Android (12470979, +pgo, -bolt, +lto, -mlgo, based on r522817c) Clang 18.0.3 (https://android.googlesource.com/toolchain/llvm-project d8003a456d14a3deb8054cdaa529ffbf02d9b262)), android 15.0
      PASS   : tst_QGridLayout::initTestCase()
      FAIL!  : tst_QGridLayout::spacingsAndMargins(1x1 grid) Compared values are not the same
         Actual   (pt)                      : QPoint(11,35)
         Expected (expectedpositions.at(pi)): QPoint(11,11)
         Loc: [/Users/assam/Workspace/qtproject/qt/qtbase/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp(665)]
      FAIL!  : tst_QGridLayout::spacingsAndMargins(2x1 grid) Compared values are not the same
         Actual   (pt)                      : QPoint(11,35)
         Expected (expectedpositions.at(pi)): QPoint(11,11)
         Loc: [/Users/assam/Workspace/qtproject/qt/qtbase/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp(665)]
      FAIL!  : tst_QGridLayout::spacingsAndMargins(3x1 grid) Compared values are not the same
         Actual   (pt)                      : QPoint(11,35)
         Expected (expectedpositions.at(pi)): QPoint(11,11)
         Loc: [/Users/assam/Workspace/qtproject/qt/qtbase/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp(665)]
      FAIL!  : tst_QGridLayout::spacingsAndMargins(1x2 grid) Compared values are not the same
         Actual   (pt)                      : QPoint(11,35)
         Expected (expectedpositions.at(pi)): QPoint(11,11)
         Loc: [/Users/assam/Workspace/qtproject/qt/qtbase/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp(665)]
      FAIL!  : tst_QGridLayout::spacingsAndMargins(1x3 grid) Compared values are not the same
         Actual   (pt)                      : QPoint(11,35)
         Expected (expectedpositions.at(pi)): QPoint(11,11)
         Loc: [/Users/assam/Workspace/qtproject/qt/qtbase/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp(665)]
      FAIL!  : tst_QGridLayout::spacingsAndMargins(2x2 grid) Compared values are not the same
         Actual   (pt)                      : QPoint(11,35)
         Expected (expectedpositions.at(pi)): QPoint(11,11)
         Loc: [/Users/assam/Workspace/qtproject/qt/qtbase/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp(665)]
      PASS   : tst_QGridLayout::cleanupTestCase()
      Totals: 2 passed, 6 failed, 0 skipped, 0 blacklisted, 845ms
      ********* Finished testing of tst_QGridLayout ********* 

      Then even trying to add safe margins to the expected points, it's not enough because I think the test has some hard-coded margins for the layout and it's not enough to simply do that but it might require a more in-depth remake for the test.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            assam Assam Boudjelthia
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes