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

QCoreApplication::removeNativeEventFilter does not use MainThread eventDispatcher

    XMLWordPrintable

Details

    • All
    • ed70faf87 (dev), bb5134726 (6.7), 26e570051 (tqtc/lts-6.5)

    Description

      inconsistency between QCoreApplication:installNativeEventFilter and QCoreApplication:removeNativeEventFilter. 

      InstallNativeEventFilter requests an instance of QAbstractEventDispatcher with: QAbstractEventDispatcher::instance(QCoreApplicationPrivate::theMainThread.loadAcquire());
      RemoveNativeEventFilter requests the instance without MainThread parameter.
      This results in a leak / filter is not removed, if the RemoveNativeEventFilter is called from a thread other than the MainThread.

      Attachments

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

        Activity

          People

            dfaure_kdab David Faure
            sc_marku Markus Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes