You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
586 B
C
28 lines
586 B
C
|
4 years ago
|
/*!
|
||
|
|
*FileName: IMainWidget.h
|
||
|
|
*Author: Pan Yingdong
|
||
|
|
*Email: bob.pan@hzleaper.com
|
||
|
|
*Created:2021/2/10 15:56
|
||
|
|
*Note:
|
||
|
|
*/
|
||
|
|
#ifndef _H_IMAINWIDGET_H_
|
||
|
|
#define _H_IMAINWIDGET_H_
|
||
|
|
|
||
|
|
#include <QObject>
|
||
|
|
#include <QWidget>
|
||
|
|
class IMainWidget : public QObject
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
public:
|
||
|
|
IMainWidget(QObject *parent = nullptr) {};
|
||
|
|
~IMainWidget() {};
|
||
|
|
virtual void showWidget() = 0;
|
||
|
|
};
|
||
|
|
|
||
|
|
#define IMAINWIDGET_API extern "C" __declspec(dllexport)
|
||
|
|
IMAINWIDGET_API IMainWidget* MainWidget_Create();
|
||
|
|
IMAINWIDGET_API void MainWidget_Delete(IMainWidget* pwd);
|
||
|
|
typedef IMainWidget* (*_MainWidget_Create)();
|
||
|
|
#endif
|