... SerialDeviceInfo *sdi = new SerialDeviceInfo(this); ...
#if defined(MYSHAREDLIB_LIBRARY) # define MYSHAREDLIB_EXPORT Q_DECL_EXPORT #else.........class MYSHAREDLIB_EXPORT MyClass