[Qt5-feedback] Make some undocumented features documented

Thiago Macieira thiago at kde.org
Wed May 25 23:54:09 CEST 2011


On Thursday, 26 de May de 2011 11:56:26 Kishore wrote:
> On Thursday 26 May 2011 2:40:20 AM Thiago Macieira wrote:
> >         QObject::connect(sender, &SenderClass::signalName,
> >                 [](int i){ qDebug() << i; });
> 
> OT. Could you just explain the above code? Is that just indicative or can
> you implement the method in the connect function call?

You can. The above code is perfectly valid and I have proof of concept.

> Sorry, im just confused since i have never seen code like in your
> illustration and also without the SIGNAL() and SLOT() macros.
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt.nokia.com/pipermail/qt5-feedback/attachments/20110525/5dd9c02a/attachment.bin 


More information about the Qt5-feedback mailing list