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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes