Community
Participate
Working Groups
The qt plugins have a utility that is used when examining QObject::connect and disconnect function calls. If the function is called in an unexpected way then the utility fails to resolve it and the function is ignored. For the non-static versions of connect and disconnect, we expect the function call to look like: this->connect( ... ) It fails in either of these cases (when called from within the body of a non-static method): connect( ... ) QObject::connect( ... ) One result of this is that the Codan checker will not examine SIGNAL parameter in: class Q : public QObject { Q_OBJECT void f() { QObject::disconnect( SIGNAL( destroyed() ), this, SLOT( deleteLater() ) ); } };
This is fixed in: https://git.eclipse.org/r/20399