Search the forum for other threads on this topic.

Make sure that the header of the class you wish to qobject_cast to, is not processed by moc in both the DLLs (i.e. it must not be in both .pro files' HEADERS sections).