Make it possible to put QObject tracked with QWeakPointer inside QSharedPointer