Originally Posted by
niko
probably only a problem on win32?
Yes, I just checked the sources and all classes are declared like this:
class DataObject
: public QObject { Q_OBJECT
// ...
};
class DataObject : public QObject {
Q_OBJECT
// ...
};
To copy to clipboard, switch view to plain text mode
Which means that they aren't ready for use in DLLs (in short: you can't use those classes outside the DLL, because they're not exported).
It should be:
class EXPORT DataObject
: public QObject { Q_OBJECT
// ...
};
class EXPORT DataObject : public QObject {
Q_OBJECT
// ...
};
To copy to clipboard, switch view to plain text mode
Where EXPORT macro is either __declspec(dllimport), __declspec(dllexport) or empty. See this thread for more info.
Bookmarks