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

QWidget receives two resizeEvent's before its first paintEvent

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.4.0
    • 5.0.2, 5.1.0
    • None

    Description

      We get one resizeEvent from QWidget's internal sendPendingMoveAndResizeEvents function and one from QGuiApplication::processExposeEvent(). The second one is sent because we guarantee one resizeEvent prior to any expose event in QWindow.

      The test previously passed because we did not allow the event loop to run and the processing of the expose event didn't happen until the test had completed. Any stand alone usecase with a real widget, would have proven the error, however.

      I will update the tst_qwidget::resizeEvent() with a couple of QTest::qWaitForWindowExposed() so that the error becomes visible in the test. The test is marked as QSKIP until the problem is resolved.

      Attachments

        Issue Links

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

          Activity

            People

              jolind Jorgen Lind
              sletta Gunnar Sletta
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes