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

tst_qquickitem2 fails on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.3.0 RC
    • GUI: Window management
    • None
    • Android

    Description

      tst_qquickitem2 fails with the error:

      FAIL!  : tst_QQuickItem::colorGroup() 'QTest::qWaitForWindowActive(&view)' returned FALSE. ()
         Loc: [/home/andreasbuhr/development/qtdev/qtdeclarative/tests/auto/quick/qquickitem2/tst_qquickitem.cpp(3796)]
      

      The error is in tests added in summer 2021:

      introduced in
      https://codereview.qt-project.org/c/qt/qtdeclarative/+/353901

      There is an "activationThief" stealing activation by

          QWindow activationThief;
          activationThief.show();
          activationThief.requestActivate();
      

      This works, but the view stealing back activation by

          view.requestActivate();
          QVERIFY(QTest::qWaitForWindowActive(&view));
      

      fails on Android.

      Observation:
      It works if the activationThief is hidden before. The change in https://codereview.qt-project.org/c/qt/qtdeclarative/+/405644 circumvents the problem.

      Attachments

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

        Activity

          People

            vhilshei Volker Hilsheimer
            andreasbuhr Andreas Buhr
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes