3 ms·
I used Qt in the early days, and always found the signal/slot model to handle events quite cumbersome. Handling events through closures (like typically done in
by amelius 9y ago
I used Qt in the early days, and always found the signal/slot model to handle events quite cumbersome. Handling events through closures (like typically done in JavaScript) is, imho, much nicer.
- mnutt 9y agoI'm only an occasional Qt user but I believe since c++11 they've gained much better support for anonymous functions.
- jcelerier 9y ago> I used Qt in the early days, and always found the signal/slot model to handle events quite cumbersome. Handling events through closures (like typically done in JavaScript) is, imho, much nicer. You have been able to bind closures to events in Qt for... dunnno... 6 years maybe ?
- drb91 9y agoPerhaps ironically, Javascript is a first class qt/qml citizen these days. You’ve been able to use QML with javascript—including/mainly via closures—for a while now.