PDA

View Full Version : How to call the dll's C++ class in Qt program?



tszzp
2nd February 2010, 09:31
I write a program include many widgets, now I want to make it as a library or dll. If I write it as a dll, and export the all widgets class, the call program must include the all widget's header file. Can you tell me if there is the better method to do it? and the call program don't need include many header file. thanks.

navi1084
2nd February 2010, 09:38
use __declspec(dllexport) or Q_DECL_EXPORT.