On Wednesday, 25 de May de 2011 21:53:27 Peter Kümmel wrote:
> On 25.05.2011 06:35, Thiago Macieira wrote:
> > All signals are protected today. I already said it might change in Qt 5
> > so we can use C++0x-based connect statements.
>
> Nice, sounds like a C++(C++0x) only connect with compile-time type checking.
>
> Are there any concrete plans in this direction, or is it just a
> "all is possible in Qt5, show us code" statement?

Somewhat.

I do have some code I wrote that allows to do the compile-time argument
checking and casting, as well as the delivery code. I know Olivier has been
doing some experiments with connecting to regular function pointers. Put the
two together and you've got C++0x connects.

This doesn't need to be in Qt 5.0, though.

However, the change of "signals" to public needs to. Otherwise, you cannot
write:

        QObject::connect(sender, &SenderClass::signalName,
                [](int i){ qDebug() << i; });

Unless you're a friend of SenderClass.

--
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

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Qt5-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback

Reply via email to