Passing objects derived from 'B' to functions that expect parameters of type 'B'
I think this is a matter of OOP.
In my test I am getting a type error:
@expected data of type 'QObject*', got 'TestDataAccess*' for element 0 of data with tag 'Normal'@
But 'TestDataAccess' is derived from QObject. How to make the method receives any object that derives QObject?
did you tried to cast it?
AtpSingleApplication *singleApp = qobject_cast<AtpSingleApplication *> (qApp);@
Thanks! this solved
then if you want to mark it as [SOLVED] for others to know