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