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

QCoreApplication::removeNativeEventFilter does not use MainThread eventDispatcher

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.13
    • Core: Event loop
    • None
    • All

    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

        For Gerrit Dashboard: QTBUG-124783
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change