Hi, 

I Have been working on the new syntax for signals and slot.
http://developer.qt.nokia.com/wiki/New_Signal_Slot_Syntax

It looks like that.

connect(sender, &Sender::valueChanged,
        receiver, &Receiver::updateValue );

The idea is too have more check at compile time (typos, type checking, no 
issues with typedefs and namespaces)

With recent compilers, you can even do:  (using lambdas)

connect(sender, &Sender::valueChanged, [=](const QString &newValue) {
        receiver->updateValue("senderValue", newValue);
    }  );

More information on the wiki.

I think the code is ready to be merged in Qt5, so I made a merge requests:
https://qt.gitorious.org/qt/qtbase/merge_requests/42

Feedback welcome.

-- 
Olivier


_______________________________________________
Qt5-feedback mailing list
Qt5-feedback@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback

Reply via email to