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

When destroyed() signal is called the slot of another variable is already deleted

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 4.6.3, 4.7.4, 4.8.0, 5.0.0 Beta 1
    • Fix Version/s: 5.0.0 RC 1, 5.0.0 RC 2
    • Component/s: Core: Object Model
    • Labels:
      None
    • Environment:
      Windows 7

      Description

      If you have two variables (A and B) where and you connect B's destroyed() signal to A, it sometimes goes to A's slot and sometimes not. It depends of the class hierarchy if the slot is run. I attached an example application to reproduce the issue. In the application there is a flag that you can use to modify the hierarchy to reproduce the issue or make it to work fine.

      This bug report might be a duplicate of QTBUG-9525.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              laknoll Lars Knoll
              Reporter:
              qtcomsupport Qt Support
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes