[Interest] qobject_cast returns 0

Alexander Dyagilev alervdvcw at gmail.com
Fri Jan 27 21:30:23 CET 2017

it seems the problem is that class instance is created in one DLL while 
qobject_cast is called for this instance in another DLL...

can this be the reason?

what can be done then?

On 1/27/2017 11:24 PM, Alexander Dyagilev wrote:
> Hello,
> got one yet another qt bug(?) ....
> qobject_cast<MyClass*> returns 0
> dynamic_cast works fine.
> MyClass is derived from a base class derived from QObject.
> Q_OBJECT macro is present...

More information about the Interest mailing list