On 02-Oct-14 11:30, Daniel Teske wrote:

> a->connect(b, &B::sig, &A::slot),
>
> calls the *static* connect method, that takes no context object, so the
> connection is not removed if "a" is deleted.

It's even worse: the connection is from b to b and not from b to a as 
expected. Luckily, this doesn't even compile if A and B are unrelated 
classes.

I wonder why we have those static connect(sender, ..., sender, ...) 
"convenience" overloads at all. This is utterly confusing as the 
non-static variant connects from sender to this.


BR,

Joerg

_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qt-creator

Reply via email to