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

[QMacNativeWidget] show modal breaks Qt event loop: QObjects deleteLater events not processed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.7.4, 4.8.0
    • Core: Event loop
    • None
    • Tested on 4.8.0 and 4.7.4. Qt Cocoa 64-bit. Mac OS 4.6.

      Embedding a QMacNativeWidget in an NSWindow, showing a Qt modal dialog or a Qt popup such as a combobox, puts the qt event loop into a bad state where deletion with QObject::deleteLater() stops happening. I assume this is related to qt event loop level.

      Test Case Attached:
      My test case has a timer creating a QObject every second and marking it for deletion with deleteLater(). After clicking the combobox (any modal state will do) deleteLater objects no longer deleted.

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

            Unassigned Unassigned
            garvank Garvan Keeley
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes