In this article:
http://byuu.org/articles/qt
the author (who doesn't much like Qt) seems to claim that signals and slots could be replaced by lambdas, e.g.,
Qt Code:
saveButton.onClick = []() { file.saveToDisk(); };To copy to clipboard, switch view to plain text mode
I don't understand much about lambdas or C++11, but I am curious whether or not this is true, as the code presented in the article does look nice.
FWIW I like signals and slots, and plan to continue using them... I'm just curious about this.


Reply With Quote

At times like this I'm willing to put such person in front of MSVC6 asking them to emulate what Qt's container classes do with MSVC6's implementation of STL and then to repeat that with a compiler that doesn't have an STL implementation at all.

Bookmarks