[Development] QtNetwork changes from QtDD SF 2011

Thiago Macieira thiago.macieira at intel.com
Wed Dec 7 17:22:36 CET 2011


On Wednesday, 7 de December de 2011 09.12.39, Olivier Goffart wrote:
> > * QObject::connect needs to be able to take a QSharedPointer<QObject>
> > * QObject::connect needs to be able to take a QWeakPointer<QObject>
> 
> I don't understand this point: you can just pass the pointer.data() to 
> QObject::connect, and QObject::connect automatically take care of 
> disconnecting when the object is destroyed.

You can. This is just for convenience.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- 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/20111207/e7bda4b9/attachment.sig>


More information about the Development mailing list