mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-06 02:30:38 -08:00
27 lines
408 B
C++
27 lines
408 B
C++
#ifndef LIB_H
|
|
#define LIB_H
|
|
|
|
#include <QtCore>
|
|
|
|
#ifdef Q_CC_MSVC
|
|
#define LIB_EXPORT __declspec(dllexport)
|
|
#else
|
|
#define LIB_EXPORT
|
|
#endif
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
extern "C" { LIB_EXPORT QObject* ini(); }
|
|
|
|
class CPP : public QObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
// max. 10 arguments of type QVariant
|
|
// return type must also be a QVariant
|
|
Q_INVOKABLE QVariant hello(const QVariant&);
|
|
};
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
#endif
|