This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric/native/native_bridge.h
2019-12-12 16:10:01 +08:00

19 lines
360 B
C++

#ifndef NATIVE_BRIDGE_H
#define NATIVE_BRIDGE_H
#include <QObject>
#include <QDebug>
class NativeBridge : public QObject {
Q_OBJECT
public:
NativeBridge(QObject *parent = nullptr) : QObject(parent) {}
Q_INVOKABLE void function(int contextId) {
qDebug() << "contextId: " + QString::number(contextId);
}
};
#endif // NATIVE_BRIDGE_H