jwintz
8th June 2006, 16:33
I'm using the last version of QSA within my software and I have the following problem.
I add using QSProject.addObject() an object, say o of type O, which features the following function :
void O::f(A a) {...}
and I have other objects of type B which inherits A
class B : public A ;
for which I have reimplemented the create function so that I can create them in the script interface.
So in the script I write something like :
var b = new B ;
o.f(b) ;
And I get the following error message : Error : No matching slot found, available overloads are : O::addObject(A*)
Maybe inheritance is not handled in QSA ? Thanks for your responses.
I add using QSProject.addObject() an object, say o of type O, which features the following function :
void O::f(A a) {...}
and I have other objects of type B which inherits A
class B : public A ;
for which I have reimplemented the create function so that I can create them in the script interface.
So in the script I write something like :
var b = new B ;
o.f(b) ;
And I get the following error message : Error : No matching slot found, available overloads are : O::addObject(A*)
Maybe inheritance is not handled in QSA ? Thanks for your responses.