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

Make a platform-aware qWaitForWindowExposed()/Active()

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.7
    • Testing: qtestlib
    • All

    Description

      Many of our autotests have been lately failed in qWaitForWindowExposed()/Active() and this is beginning to be a big problem, since it slows down the CI. This is not macOS problem only, but it affects all platforms. Every platform has it's own interpretation of when a window is exposed. See: https://bugreports.qt.io/browse/QTBUG-53252

      At least the following tests are failing:
      tst_qdialog, tst_qmdisubwindow, tst_qmdiarea

      At the moment qWaitForWindowExposed() is implemented in terms of QWindow::isExposed() and QExposeEvent. However the desired behavior here might be slightly different: The expose event is sent just before the window becomes visible on screen (Qt needs to draw a frame then so we have something to display on screen), while qWaitForWindowExposed() probably wants to wait until after the window has become visible and is stable.

      Attachments

        Issue Links

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

          Activity

            People

              vestbo Tor Arne Vestbø
              mipohjan Milla Pohjanheimo
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes