Hi
I'm sitting with a problem where a qobject_cast fails when doing a cast across a DLL boundary.
I have a base class:
{
Q_OBJECT
public:
~Variable();
}
class Variable : public QObject
{
Q_OBJECT
public:
Variable(QObject* parent = 0);
~Variable();
}
To copy to clipboard, switch view to plain text mode
and a class which inherits Variable:
class MatrixReal : public Variable
{
Q_OBJECT
public:
MatrixReal();
}
class MatrixReal : public Variable
{
Q_OBJECT
public:
MatrixReal();
}
To copy to clipboard, switch view to plain text mode
I create a MatrixReal* instance and cast it to a Variable*. When casting Variable* to MatrixReal* again later on in the same DLL it works. However if I send this Variable* to a different DLL and try to cast to MatrixReal* there it fails.
Any ideas on how to get this working would be much appreciated.
Thanks,
Jaco
Bookmarks