class B: public A{ Q_OBJECT...signals: void sig(const QString &afsdf);};
class A: public QThread{ Q_OBJECTpublic: A() {} ~A() {} void run(); virtual void proceed()=0;signals: void messageInfo(const QString &message);};void A::run(){ proceed();}
class B: public A{ Q_OBJECTprotected: void proceed();signals: void b_signal(const QString &info);};void B::proceed(){ emit b_signal("Hello, World!");}int main(int argc, char **argv){ QApplication app(argc,argv); return app.exec();}
class __declspec(dllexport) A: public QThread
#ifdef Q_WS_WIN #define MY_EXPORT __declspec(dllexport)#else #define MY_EXPORT#endif
#ifdef Q_WS_WIN# ifdef MD_DLL# define MD_EXPORT __declspec(dllexport)# endif#endif#ifndef MD_EXPORT# define MD_EXPORT#endifclass MD_EXPORT A: public QThread{ Q_OBJECTpublic: A() {} ~A() {} void run(); virtual void proceed()=0; signals: void messageInfo(const QString &message); };
#include <Qt/qglobal.h>#ifdef MD_DLL #define MD_EXPORT Q_DECL_EXPORT#else #define MD_EXPORT Q_DECL_IMPORT#endif
#include <Qt/qglobal.h>#ifdef MD_DLL #define MD_EXPORT __declspec(dllexport)#else #define MD_EXPORT __declspec(dllimport)#endif
#ifdef Q_WS_WIN# ifdef MD_DLL# define MD_EXPORT __declspec(dllexport)# endif#endif#ifndef MD_EXPORT# define MD_EXPORT#endif
#ifdef Q_WS_WIN# ifdef MD_MAKE_DLL# define MD_EXPORT __declspec(dllexport)# elif defined(MD_DLL)# define MD_EXPORT __declspec(dllimport)# endif#endif#ifndef MD_EXPORT# define MD_EXPORT#endif