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

QCoreApplication::processEvents unreliable with glib event dispatcher

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.10.0 Alpha
    • Some future release
    • Other
    • None

      With Glib event dispatcher the following sequence of code may assert:

      QCoreApplication::processEvents();
      Q_ASSERT(QWindowSystemInterface::windowSystemEventsQueued() == 0);
      

      See attachment for compilable test code. It all depends on timing, but it is easier to reproduce when CPU is busy (e.g. when compiling) and mouse hovers over the test window. Sometimes it is enough just to start the test and it immediately (after few iterations in the loop) asserts.

        1. bug.tar.gz
          0.8 kB
          Gatis Paeglis
        For Gerrit Dashboard: QTBUG-62297
        # Subject Branch Project Status CR V

            paeglis Gatis Paeglis
            paeglis Gatis Paeglis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes