Solved.
This is a Windows specific issue.
Each DLL Classes needs to exported during the DLL build.
Each DLL Classes needs to be imported during your program's build.
You have to proceed this way :
In my Lib project:
In my lib global header :
#ifdef CUTE_TOOLKIT_DLL // Replace by your own DEFINE
# define EXPORT Q_DECL_EXPORT
#else
# define EXPORT Q_DECL_IMPORT
#endif
#ifdef CUTE_TOOLKIT_DLL // Replace by your own DEFINE
# define EXPORT Q_DECL_EXPORT
#else
# define EXPORT Q_DECL_IMPORT
#endif
To copy to clipboard, switch view to plain text mode
(you could use __declspec(dllimport), __declspec(dllexport))
In my lib widget classes :
class EXPORT qkBox
: public QWidget{
Q_OBJECT
//...
class EXPORT qkBox : public QWidget
{
Q_OBJECT
//...
To copy to clipboard, switch view to plain text mode
In my lib pro file :
DEFINES += CUTE_TOOLKIT_DLL
DEFINES += CUTE_TOOLKIT_DLL
To copy to clipboard, switch view to plain text mode
Bookmarks