On Monday 26 September 2011 15:40:01 Thiago Macieira wrote:
> I know an asynchronous API is much harder to deal with and leads to more
> complex code.
Not necessarily...
connect (manager->get(QNetworkRequest(url)), &QNetworkReply::finished, [=](){
QByteArray content =
qobject_cast<QNetworkReply*>(sender())->readAll();
parse(content);
});
That is, using C++11 lambda and the proposed conneciton syntax:
http://developer.qt.nokia.com/wiki/New_Signal_Slot_Syntax#45f5369b0d8445adbaf54cd74a36b823
_______________________________________________
Qt5-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback