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

QCoreApplication::sendPostedEvents does not process DeferredDelete by default

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.6.2, 5.15.2
    • Core: Event loop
    • None

    Description

      Please see

      https://lists.qt-project.org/pipermail/qt-interest-old/2010-April/022513.html

      The poster says:

      "However, deleting a QObject with:

        someObj->deleteLater();

      and then doing:

        qApp->sendPostedEvents();

      does not result in 'someObj' being deleted. For that to happen, I have to explicitly call:

        qApp->sendPostedEvents(0, QEvent::DeferredDelete);

      Is this a bug or expected behavior?"

       

      I am seeing this problem still today. The OP's question was never answered.

      I am re-posting the question to seek an answer.

      Calling sendPostedEvents() with default arguments should work, no?

      Is it a bug?

       

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            Tim E. Real Tim E. Real
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes