目前,我想使用PyQt调用Qt生成的dll,但是发现网上多为C的或电脑自带的dll。请各位大侠指点
下面是Qt用C++生成dll的源码
#include "dlltest.h"
#include <QDebug>
DllTest::DllTest()
{
}
void DllTest::PrintTest()
{
qDebug()<<"dll 被调用";
}
#ifndef DLLTEST_H
#define DLLTEST_H
#include "dlltest_global.h"
class DLLTESTSHARED_EXPORT DllTest
{
public:
DllTest();
void PrintTest();
};
#endif // DLLTEST_H