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

QSharedPointer::create does not set the weak pointer in QEnableSharedFromThis

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.4.2
    • 5.4.0
    • Core: Other
    • None
    • Ubuntu 14.10 64 bit.
    • 473ad206c40ac99d00732f5862a51affcd746d2d

    Description

      If I create a shared pointer using QSharedPointer<T>::create() then the weak pointer for QEnableSharedFromThis<T> is null. If I use QSharedPointer<T>(new T()) then everything is correct.

      Attachments

        For Gerrit Dashboard: QTBUG-43696
        # Subject Branch Project Status CR V

        Activity

          People

            thiago Thiago Macieira
            esperantisto Ivan Trombley
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes