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

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

XMLWordPrintable

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

      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.

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

            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

              Created:
              Updated:

                There are no open Gerrit changes