Priority: P2: Important
Resolution: Out of scope
Affects Version/s: 5.4.0
Fix Version/s: None
Component/s: Core: Object Model
Qt Creator stumbled over an issue where a connect with the new member fuction pointer based method compiled nicely but then failed at runtime with a
QObject::connect: signal not found in Foo
It is really much of a corner in this case which in addition seems to happen only with msvc. Not sure if this can be considered a compiler bug or a bug in Qt. Anyway I post this here for the records.
Scenario: A class has a signal which overrides a virtual member function of its base class. When trying to connect to the signal of the derived class from outside the library (.dll) where the two classes "live", apparently a wrong method pointer is created. The result is the above message at runtime.
Code in the library:
Code outside the library:
See the attached msvcissue.zip for a working demo.