Since it's now possible to use lambdas as slots:
connect(sender, &SenderClass::connected, [this] () {
this->doSomething();
};
I have to wonder what is supposed to happen when the object where the
lambda appears gets destroyed. In this particular example, if the
lambda executes, dereferencing 'this' is no longer valid.
The documentation:
http://qt-project.org/doc/qt-5.0/qtcore/qobject.html#connect-5
does not mention anything about it.
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest