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

QWidget doesn't invalidate associated QPointer before emitting destroyed() signal

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2.4
    • None
    • Windows

    Description

      The document of QObject::destroyed() states that

      This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified

      But QWidget doesn't obey this rule. It emits detroyed() signal in it's own destructor, thus leaving associated QPointer objects valid at the moment of emitting.

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              hello_mike_ Mike Xie
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes