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

DeferredDelete events not handled when created by GLib dispatched events

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.8.0 Alpha
    • 5.0.2
    • Core: Event loop
    • None

    Description

      Deferred delete events are not handled if they were posted from a glib event callback execution cycle.
      loop level for event = loop level for current thread.

      I believe the loop level should be incremented before calling g_main_context_iteration in QEventDispatcherGlib::processEvents.

      QScopedLoopLevelCounter loopLevelCounter(threadData);
      

      Test App supplied to reproduce the problem.
      unzip and ./run

      Attachments

        1. TestGlibLoop.tar.gz
          3 kB
          Nick Dedekind

        Issue Links

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

          Activity

            People

              paangele Paolo Angelelli
              dednick Nick Dedekind
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes