[Development] QSharedPointer<QObject> specialization

Philippe philwave at gmail.com
Fri Jun 15 09:32:13 CEST 2018


QObject has built-in support to a reference count block to support QPointer (which is composed of a QWeakPointer)

When doing QSharedPointer<QObject>, is there a technical reason that prevents the QObject control block to be used,
rather allocating a new one, like it is necessary for common objects?

IOW, is a QSharedPointer<QObject> specialization feasible?

Philippe






More information about the Development mailing list