qoject专题

使用 QMetaObject 和 QMetaMethod,从Dll库中导出类,Dll库类继承QOject

Dll库代码: .h #ifndef DLLDEMO_H#define DLLDEMO_H#include <QObject>#include "DllDemo_global.h"extern "C" DLLDEMO_EXPORT void *CreatInst(char *strpart);class DLLDEMO_EXPORT DllDemo : public QObject{Q