[Development] QScopedPointer and QObjects

Thiago Macieira thiago.macieira at intel.com
Sun Jul 28 23:47:34 CEST 2013


On domingo, 28 de julho de 2013 22:48:45, Milian Wolff wrote:
> On Sunday 28 July 2013 12:18:15 Thiago Macieira wrote:
> > On domingo, 28 de julho de 2013 13:51:13, Matt Broadstone wrote:
> > > Is there a reason this wasn't added for convenience? Or, would there be
> > > interest in me submitting a patch to include this in a later version of
> > > Qt?
> > > We should even be able to fix this seamlessly with templates unless I'm
> > > mistaken.
> > 
> > Go ahead and submit the deleter class.
> 
> But don't make it mandatory for QObject (which is how I understood your "fix
> this seamlessly with templates"). You usually don't have to delete
> QObject's with deleteLater afaik.

Right. Submit *just* the new class and document it.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130728/ffab60e2/attachment.sig>


More information about the Development mailing list